Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
saikyun
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
saikyun
5y ago
Aha, thanks for the info. Then I believe Janet could fill a similar role. What little profiling I've seen puts them in a similar category: https://github.com/MikeBeller/janet-benchmarksgame/blob/mast...
2.
▲
by
saikyun
5y ago
Last time I checked, Carp doesn't have a REPL that can interact with a running process. In Janet you can do things like change functions during runtime.
3.
▲
by
saikyun
5y ago
I think this is LuaJIT, or? Iiuc Janet is comparable to non-JITed Lua. But I actually have no clue.
4.
▲
by
saikyun
5y ago
You can access any element in your array in O(1). I think it is faster to loop through as well, but I'm not so sure about that. The drawback is that appending / removing elements at the beginning of the array is O(n). When it come
5.
▲
by
saikyun
5y ago
This is what I was referring to, sorry for being unclear. :)
6.
▲
by
saikyun
5y ago
Thank you! That is exactly what I'm going for. :) My friend said "so you're just making basic?", haha. I didn't get to experience C64 / Amiga era, but after having listened to 100s of interviews with swedish ga
7.
▲
by
saikyun
5y ago
It's easy to treat any C struct as an abstract object in Janet, then have functions that do specific things (e.g. write to the file, read from it, etc). You have to write some manual code, but it's generally not too bad.
8.
▲
by
saikyun
5y ago
This is solid advice. :)
9.
▲
by
saikyun
5y ago
I know I had some trouble with raylib's dependencies on Linux. If you get stuck, feel free to at me at the janet gitter.
10.
▲
by
saikyun
5y ago
> I have never been successful getting any of the UI or drawing libraries to work. Have you tried jaylib (built on top of raylib)? I have gotten that to work well on macos, linux and windows. :) > The main http server circlet is MIT l
11.
▲
by
saikyun
5y ago
Oh, that's really cool. :) Thanks for mentioning it.
12.
▲
by
saikyun
5y ago
Thank you. :) If you do try it out, I'd be happy for any feedback on Freja! :) I should mention that Windows support is currently a bit behind, so if you're on Windows I could fix that then comment here again when it's done.
13.
▲
by
saikyun
5y ago
I'm making an editor, Freja, which is like a tiny Emacs with graphical support. Makes it fun to create gui apps and games. :) Ultima Underworld inspired game I'm making for a game jam: https://youtu.be/1fWsV83P-S8
14.
▲
by
saikyun
5y ago
Though you can share memory manually, i.e. in C but access it from Janet.
15.
▲
by
saikyun
5y ago
Ah, that's cool. I haven't heard of similar integrations with python, but I imagine it's possible to set up. :) Hope you're having fun with it! If you get a chance to watch the videos it might give you some extra ideas o
16.
▲
by
saikyun
5y ago
I'm happy you asked! :) I think these terms are very vague, and I haven't found a good way to be more clear. For me a "real repl" includes: 1. Decent support from the language to do REPLy things E.g. being able to change
17.
▲
by
saikyun
5y ago
I've used it to make Freja, a text editor making coding GUIs and games fun for me again. Demo: https://youtu.be/KOBi805nxNc When comparing to non-lisps 1. It has a real REPL, so you can do live coding (this is what mak