Live data from Hacker News

Janet: a lightweight, expressive and modern Lisp

janet-lang.org

1–10 of 280 posts

Re: Janet: a lightweight, expressive and modern Lisp

#3
I'm beginning to create a lisp webserver using sbcl for a personal project.

I find this interesting but i'd like to know if a webserver library exist for janet yet, and how does it perform compared to sbcl performance-wise (x2 to x5 does not bother me, anything beyond that would not be great).

I'd like to know if a slime/swank can be used with janet (although this is really not a requirement)

[edit] i just thought that creating a webserver would be a nice introduction to the language.

Also can you compile janet into wasm?

Re: Janet: a lightweight, expressive and modern Lisp

#5
post #3

I'm beginning to create a lisp webserver using sbcl for a personal project. I find this interesting but i'd like to know if a webserver library exist for janet yet, and how does it perform compared to sbcl performance-wise (x2 to x5 does not bother me, anything beyond that would not be great). I'd like to know if a slime/swank can be used with janet (although this is really not a requirement) [edit] i just thought th…

It’s right on the bottom of the page my dude, just scroll down or C-f circlet

Re: Janet: a lightweight, expressive and modern Lisp

#8

    janet:1:> (cons 1 2)
    compile error: unknown symbol cons on line 1, column 1 while compiling repl
    janet:2:> (list 1 2)
    compile error: unknown symbol list on line 2, column 1 while compiling repl
    janet:3:> (vector 1 2)
    compile error: unknown symbol vector on line 3, column 1 while compiling repl
I certainly need to learn the basic idioms of this dialect; it looks nothing like Common Lisp under the hood.

Re: Janet: a lightweight, expressive and modern Lisp

#9
post #5
post #3

I'm beginning to create a lisp webserver using sbcl for a personal project. I find this interesting but i'd like to know if a webserver library exist for janet yet, and how does it perform compared to sbcl performance-wise (x2 to x5 does not bother me, anything beyond that would not be great). I'd like to know if a slime/swank can be used with janet (although this is really not a requirement) [edit] i just thought th…

It’s right on the bottom of the page my dude, just scroll down or C-f circlet

wow i stopped at "try it". thank you.

Re: Janet: a lightweight, expressive and modern Lisp

#10
Lisp languages should be great for embedding into games to implement game logic, instead of more straightforward solutions such as embedding Lua. I've always wanted to explore this for my iOS side-project game, which now uses an event-based system inspired by ReactiveX, implemented in Lua. This works pretty well but is very hard to debug.

The main thing holding me back to try to replace it with something Lisp-like is that I have zero experience in Lisp programming. I know some FP theory (in fact the Lua-based event system lends some concepts from it), but when I try to reason about common subproblems I really have no idea how to map them to something like Lisp. For example how to efficiently implement a message bus with observers that can register themselves, using state-based functions to execute when certain events are received, scheduling events, async/await to suspend processing until some event is received, etc.

Does anyone have pointers to books or websites to learn 'real-world' LISP programming? In other words not yet another introduction that shows the same old forced examples that just show you how to evaluate an expression or use higher-order functions to solve artificial toy problems, but resources that teach you how to be productive in a Lisp language?

Post reply on HN