[ prog / sol / mona ]

prog


A Look at the Design of Lua

1 2018-10-31 06:22

https://cacm.acm.org/magazines/2018/11/232214-a-look-at-the-design-of-lua/fulltext

2 2018-10-31 10:52

Hi

3 2018-10-31 10:52

Hi

4 2018-10-31 15:04

>>2,3
Hello?

5 2018-10-31 15:08

hi there

6 2018-11-01 07:59 *

hi

7 2018-11-01 23:24 *

https://www.lua.org/history.html

8 2018-11-03 08:19

Just think if WoW had rolled with an embedded Lisp instead...

9 2018-11-03 09:29

>>8
But really Lua isn't bad. It's the next best thing.

Racket is used (internally) as a scripting language in Naughty Dog's games Uncharted and the Last of Us.

10 2018-11-03 14:26

>>9
It's not really used as a scripting language. Racket is horrendously slow and there's just no way to fit the memory and CPU bandwidth the runtime would require into the game without seriously compromising the framerate.
They've written a "data compiler" in Racket which compiles various DSLs for things like animations or dialogue into C++, or bundles the files into the game.

11 2018-11-03 15:03

>>10
Racket really isn't that slow and the ND games that used it weren't anywhere near as CPU or memory constrained as those using GOAL/GOOL, but it certainly isn't anywhere near luajit footprints.
I'd so like to see any lisp (especially a lisp-1) with good features in these respects though. I don't know of any scheme-like that comes close, but maybe gerbil will get there some day. Bigloo and larceny used to be kinda good but not much so anymore and I don't think they could ever be embedded well, and stalin was too complicated to be updated quickly enough. Chez is the best option and it's quite a ways off of something like sbcl, and neither projects are particularly fun for language interop.

Has anyone seen performance characteristics for ECL? It's at least very nice to use as a scripting language (too bad the scheme options are all pretty mediocre), but I wonder if it would be good enough for videogames.

It's too bad GOAL was never released. It could have been updated by the community to work on other platforms than the early PS's.

12 2018-11-04 00:26

Racket really isn't that slow

It's certainly slow enough not to be an option for any demanding game, and certainly not on a console.

and the ND games that used it weren't anywhere near as CPU or memory constrained as those using GOAL/GOOL

You might want to go look at ND's talk on how they parallelized the engine to make it run at 60fps to get an idea of just how constrained they are, CPU and memory wise, even to this day.

13 2018-11-04 02:05

>>12

You might want to go look at ND's talk on how they parallelized the engine to make it run at 60fps to get an idea of just how constrained they are, CPU and memory wise, even to this day.

Or perhaps you should look at them again until you comprehend what you're watching.

14 2018-11-05 07:33

>>11
Little Wing Pinball uses Scheme as a scripting language: http://www.littlewingpinball.com/doc/en/ypsilon/index.html

Galactology used to embed s7 Scheme: http://carloscarrasco.com/a-love-letter-to-s7-scheme.html but they transitioned to LuaJIT and are using l2l for backward compatibility with Scheme scripts.

15 2022-08-02 13:09

Lua is pretty cool language! It's small, easy to embed into a program and there is LuaJIT that runs fast!

16 2022-08-03 15:21 *

Lua is pretty cool language! Also, I am a rhapsodic gay faggot, you can run your JIT compiler in my well-stretched anus!

17 2022-08-03 19:59 *

http://web.archive.org/web/20210506223241/https://www.nydailynews.com/news/texas-gop-platform-criminalize-gay-marriage-ban-sodomy-outlaw-strip-clubs-pornography-article-1.181668
Jun 22, 2010 at 12:36 PM
Texas GOP platform: criminalize gay marriage and ban sodomy, outlaw strip clubs and pornography

The Texas Republican Party gives a whole new meaning to the word conservative. The GOP there has voted on a platform that would ban oral and anal sex. It also would give jail sentences to anyone who issues a marriage license to a same-sex couple (even though such licenses are already invalid in the state).

"We oppose the legalization of sodomy," the platform says. "We demand that Congress exercise its authority granted by the U.S. Constitution to withhold jurisdiction from the federal courts from cases involving sodomy." The Lone Star state initially passed a law barring sodomy in 1860. Violators faced anywhere from five to 15 years in prison. The ban was overturned in 2003.

In addition, the platform says that homosexuality "tears at the fabric of society, contributes to the breakdown of the family unit and leads to the spread of dangerous communicable diseases." It also states that homosexuality must not be presented as an acceptable "alternative" lifestyle in public schools and "family" should not be redefined to include homosexual couples. The 25-page proposal, presented last week as a guide for the state GOP over the next two years, includes other measures including outlawing "sexually oriented businesses" like strip clubs and banning "all pornography."

18 2022-08-04 23:26 *

>>16 based jit spraying reference

19


VIP:

do not edit these