Re:Joy: Web framework with Clojure syntax, fast startup and ...
by christophilus on Friday May 01, 2020 @08:02PM
(#23047750)
Interesting. Anyone used Janet before? It sounds like a promising language. The fact that it supports mutable strings is a little disconcerting, though.
[ Parent
| on HN ]
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by DennisP on Friday May 01, 2020 @08:23PM
(#23047875)
I haven't yet but I think I will, partly because I've always been intrigued by lisps. Also, I hope they never change their logo, which looks a lot like my late mother did when she was young. She was also named Janet.
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by capableweb on Saturday May 02, 2020 @06:33AM
(#23050855)
That's a nice coincidence :)
Seems the inspiration for the name comes from The Good Place, and the logo seems different enough that they won't sue the owner of the project, as the face in the logo is not that similar to Janet from the TV show.
> Why Janet? Janet is named after the almost omniscient and friendly artificial being in The Good Place
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by pull_my_finger on Sunday May 03, 2020 @02:19AM
(#23057246)
Why is that a problem? Most of the data types have mutable and immutable variants. buffer -> string, table -> struct, array -> tuple. The mutable variants have a `@`.
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by cellularmitosis on Saturday May 02, 2020 @09:38PM
(#23056228)
Startup time is fantastic! https://github.com/janet-lang/janet/issues/324#issuecomment-...
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by didibus on Friday May 01, 2020 @11:05PM
(#23048788)
It's a neat little scripting language. Useful in the same places you'd find Lua useful.
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by Scarbutt on Friday May 01, 2020 @08:54PM
(#23048089)
From where do you get that strings are mutable?
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by threatofrain on Friday May 01, 2020 @10:06PM
(#23048471)
> * Mutable and immutable strings (buffer/string)
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by zdragnar on Friday May 01, 2020 @10:13PM
(#23048510)
In context of the other bullet points, buffer is the mutable variation. I can't say that I find that to be too disconcerting
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by brabel on Saturday May 02, 2020 @02:48AM
(#23049880)
It is not disconcerting. It is necessary if you want to perform string operations efficiently.
Java has String and StringBuilder for the same purpose.
Rust has str (always static, immutable) and String (can be mutable).
This is very common in non-scripting languages.
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by loosetypes on Saturday May 02, 2020 @01:23AM
(#23049484)
I love how the site has an embedded repl.
Anyone know if there’s a preferred way to implement this?