Post A0rSrPC2psitoi5Td2 by tbd@merveilles.town
(DIR) More posts by tbd@merveilles.town
(DIR) Post #A0rKUILRKhTUHbx1NI by paul@post.lurk.org
2020-11-04T15:51:58Z
0 likes, 0 repeats
Anybody have any experience working with LIL? (little interpretted language): http://runtimeterror.com/tech/lil/?ref=hvper.com#stability
(DIR) Post #A0rKmzbpDSErg3WyK8 by paul@post.lurk.org
2020-11-04T15:55:22Z
0 likes, 0 repeats
It looks promising. A small embedded language to reach for if Lua seemed like overkill. It seems to look a lot like TCL, if you're into that sort of thing.
(DIR) Post #A0rSrPC2psitoi5Td2 by tbd@merveilles.town
2020-11-04T17:25:47Z
0 likes, 0 repeats
@paul cute little lang. did you find any libs/apps written in it ?
(DIR) Post #A0raSEKWt3I8WFYw52 by paul@post.lurk.org
2020-11-04T18:50:52Z
0 likes, 0 repeats
@tbdHave not. I think the author uses it as an extension language and for miscellaneous scripting.I tried the code out and it builds and runs just fine. The code (a reasonably small C and header file) is also pretty readable.
(DIR) Post #A0rfroVvzayXkgupSC by paul@post.lurk.org
2020-11-04T19:51:32Z
0 likes, 0 repeats
In a similar vein, there's also fe, a very very small LISP-y language:https://github.com/rxi/feIt's quite charming as well, considering how much is there in only ~800 lines of C code (LIL is ~3500), and also has a readable codebase and easy-to-use API.The major downside I've seen so far is that symbol look-up uses a linked list rather than a hash table. Since I'd be interested in cramming a bunch of words in the dictionary, this is the main deal breaker for me.
(DIR) Post #A0rmEEMv95u82ClvTE by paul@post.lurk.org
2020-11-04T21:02:48Z
0 likes, 0 repeats
There seem to be quite a few TCL clones out there. Here's an article zserge wrote a few years ago:https://zserge.com/posts/tcl-interpreter/LIL is actually mentioned, and apparently "it was a pleasant experience" on embedded, but with some performance bottlenecks. I always like zerge's work, so this is high praise.Zserge also made a toy TCL implemention called partcl: https://github.com/zserge/partclI played around with partcl years ago and it was pretty fun. The documentation doesn't seem like it encourages any sort of language extension, but I seem to remember being able to do so anyways (probably with tcl_register).The article also mentions picol, another tiny TCL-like toy implementation by antirez. I've never tried it, but it's antirez, so you know that it's going to be fun: http://antirez.com/picol/picol.c.txt
(DIR) Post #A0rpBetkLxCnJ9aiSu by wrl@mastodon.social
2020-11-04T21:35:57Z
0 likes, 0 repeats
@paul i have been sketching out a REBOL-like embedded lang for a while but never made any headway on itfe looks very cool
(DIR) Post #A0rpQC23xSDS7rPa1A by wrl@mastodon.social
2020-11-04T21:36:42Z
0 likes, 0 repeats
@paul oh also janet, tho janet is more substantial: https://github.com/janet-lang/janet
(DIR) Post #A0rpQCGx467qs2NTE0 by paul@post.lurk.org
2020-11-04T21:38:35Z
1 likes, 0 repeats
@wrl oh yeah Janet is my jam. really great standard library, and great documentation. I use it in a few of my projects. The C amalgamation makes it easy to drop-and-go.
(DIR) Post #A0rpWSxZvylYMbIzXE by icedquinn@blob.cat
2020-11-04T21:39:46.722552Z
0 likes, 0 repeats
@paul @wrl henlo lisp frens :ablobcatreach:
(DIR) Post #A0rpcn3q70h4RXFWiW by icedquinn@blob.cat
2020-11-04T21:40:55.652213Z
0 likes, 0 repeats
@paul > linked listhash tables would add several hundred SLOC.i've implemented blakes and xxhashes in nim and a robin hood hash table.
(DIR) Post #A0rpjIMuckPDHOGwtc by icedquinn@blob.cat
2020-11-04T21:42:05.903860Z
0 likes, 0 repeats
@paul > TCLi tried this a few times, once with an IRC bot. i seem to recall tcl did not have proper string escaping which was a perpetual pain in the ass. so i put it away forever.people seemed to like it for some reason :cirno_shrug: wasn't it easy to embed or something?
(DIR) Post #A0rprrU1x4buVEgdDE by newt@stereophonic.space
2020-11-04T21:43:38.896801Z
0 likes, 0 repeats
@icedquinn @paul I used to work on a huge C++ project that had Tcl as an embedded scripting language. Yeah, it's almost too easy to embed in your project and totally awesome in that.
(DIR) Post #A0rpyR3CctZqYBGy2a by icedquinn@blob.cat
2020-11-04T21:44:50.089488Z
1 likes, 0 repeats
@newt @paul my main complaint was it was too easy to accidentally be evaluating strings you got from the eggbot. when i looked around for ways around this, there didn't seem to be a general one.
(DIR) Post #A0rqrSaoauDjGCETUu by paul@post.lurk.org
2020-11-04T21:54:44Z
1 likes, 0 repeats
@icedquinn Sure, I implement hash tables too. I can understand why it wasn't implemented in fe. it would go against the minimalist principles.
(DIR) Post #A0rrJOcSxcfJ2sKFX6 by paul@post.lurk.org
2020-11-04T21:59:47Z
1 likes, 0 repeats
@newt @icedquinn the tcl/tk combo and the ecosystem of libraries made it quite popular too, IIRC.I like how TCL functions written in C use the argc/argv paradigm like a mini "main" program.
(DIR) Post #A0rt5jYPvgn00qUfZI by icedquinn@blob.cat
2020-11-04T22:19:46.468639Z
2 likes, 0 repeats
@paul @newt or some people used tcl just to use tk.i've learned that virtually nobody cares to work on the UI frameworks, which is why we get socked with things like electron
(DIR) Post #A0rtdwNmjvXte4pcxs by newt@stereophonic.space
2020-11-04T22:25:57.699478Z
0 likes, 0 repeats
@icedquinn @paul not exactly. Qt is kinda dope for UI. The biggest problems are portability and distribution.
(DIR) Post #A0rtiF3pElE6jUXxQG by icedquinn@blob.cat
2020-11-04T22:26:44.104900Z
0 likes, 0 repeats
@newt @paul i would hope so for 2,000$ a developer
(DIR) Post #A0rtoTm9RM2O6kFo6S by newt@stereophonic.space
2020-11-04T22:27:51.949300Z
0 likes, 0 repeats
@icedquinn @paul hahaha! I think that license is only required if you wanna do IoT or something something.I tried Qt with QML and it was the greatest thing for making UI ever.
(DIR) Post #A0rtuFJ893XayPQgZU by icedquinn@blob.cat
2020-11-04T22:28:54.139669Z
1 likes, 0 repeats
@newt @paul qt was commercially designed and was sorta guilt tripped in to a GPL release by KDE, and for the longest time (until Nokia was comped by MS) it was 2,000$ or GPL.Trolltech was very much in it for the money otherwise.
(DIR) Post #A0rtz270dJJjUp2hPc by newt@stereophonic.space
2020-11-04T22:29:46.416379Z
0 likes, 0 repeats
@icedquinn @paul I'm not sure how this is bad.
(DIR) Post #A0ru4g63OmW6xDHsW0 by icedquinn@blob.cat
2020-11-04T22:30:47.014702Z
1 likes, 0 repeats
@newt @paul when the thesis is "people don't want to make good UIs" and the counter is "but what about the project where they were paid to do it" :blobcatthink: people do a lot of stuff they're paid to do but they otherwise wouldn't.why do you think gtk is a trash fire :blobcatlaugh:
(DIR) Post #A0ruFIwFq9FEJelrEW by newt@stereophonic.space
2020-11-04T22:32:42.867856Z
1 likes, 0 repeats
@icedquinn @paul except there are people paid for developing GTK. Mostly Red Hat and Canonical employees.Again, there just isn't a market for portable desktop apps these days.
(DIR) Post #A0ruJ7QuYjzhn4vfma by icedquinn@blob.cat
2020-11-04T22:33:24.088053Z
0 likes, 0 repeats
@newt @paul > Red Hatoh thats why GTK3 is bloat then. :comfy: