Live data from Hacker News

Janet – a Lisp-like functional, imperative programming language

github.com

21–30 of 143 posts

Re: Janet – a Lisp-like functional, imperative programming language

#21

This looks really interesting, going to check this out later today. Anyone using Janet for anything that would care to comment on their experience?

I wrote a few websites with it, notably:

https://github.com/swlkr/janetdocs

I also scraped together a large web framework and a small one:

https://github.com/joy-framework/joy https://github.com/swlkr/osprey

Re: Janet – a Lisp-like functional, imperative programming language

#22
post #8

Anything new happen with Janet? https://news.ycombinator.com/item?id=28255116 (August 2021) [114 Comments] https://news.ycombinator.com/item?id=23164614 (May 2020) [269 Comments]

Some interesting changes since August this year: - Threaded channels `ev/thread-chan` (`thread` has been deprecated [and removed in latest version [[1.18]]]) - JPM (Janet Package Manager) is now separate, not distributed together with Janet anymore - Janet binary can directly run image files with `-i`

(Not a lisp guy).

What is an image and why would I want to run one? My best guess is that an image would be platform independent bytecode vs compiled executable?

Re: Janet – a Lisp-like functional, imperative programming language

#23
post #19

This looks really interesting, going to check this out later today. Anyone using Janet for anything that would care to comment on their experience?

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 Demo of pixel editor: https://www.youtube.com/watch?v=KOBi805nxNc Freja: https://github.com/Saikyun/freja --- My experience has overall been very nice. I come from Clojure, and comparing to that: - so nice…

Wow! Some really cool projects, thanks for sharing, I'll definitely check out Freja later this evening!

Thanks so much for the info and commentary!

Re: Janet – a Lisp-like functional, imperative programming language

#24
post #21

This looks really interesting, going to check this out later today. Anyone using Janet for anything that would care to comment on their experience?

I wrote a few websites with it, notably: https://github.com/swlkr/janetdocs I also scraped together a large web framework and a small one: https://github.com/joy-framework/joy https://github.com/swlkr/osprey

Oh awesome, thanks for sharing, I have already been looking at some community examples on there!

Re: Janet – a Lisp-like functional, imperative programming language

#25

This looks really interesting, going to check this out later today. Anyone using Janet for anything that would care to comment on their experience?

I've been writing about my first impressions of the language here: https://ianthehenry.com/posts/janet-game/ Not a whole lot of content yet, but I plan to keep going with it. I am pretty firmly in the Haskell/OCaml "let me program with types" camp for most development, but it's a great to have a little scripting language to reach for instead of bash or Python or Perl. Using Janet (coming from Python) reminds me a bit…

Thanks for the link, I'll definitely check it out! What actually piqued my interest was the surface impression of something like a Lispier Perl/Python.

Re: Janet – a Lisp-like functional, imperative programming language

#26
post #19

Earlier quoted context omitted.

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 Demo of pixel editor: https://www.youtube.com/watch?v=KOBi805nxNc Freja: https://github.com/Saikyun/freja --- My experience has overall been very nice. I come from Clojure, and comparing to that: - so nice…

Wow! Some really cool projects, thanks for sharing, I'll definitely check out Freja later this evening! Thanks so much for the info and commentary!

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. :)

Re: Janet – a Lisp-like functional, imperative programming language

#27
post #8

Earlier quoted context omitted.

Some interesting changes since August this year: - Threaded channels `ev/thread-chan` (`thread` has been deprecated [and removed in latest version [[1.18]]]) - JPM (Janet Package Manager) is now separate, not distributed together with Janet anymore - Janet binary can directly run image files with `-i`

(Not a lisp guy). What is an image and why would I want to run one? My best guess is that an image would be platform independent bytecode vs compiled executable?

It's a dump of the state of the run-time environment, including data. Probably the easiest use case is using it as a savegame feature when you're working in the REPL.

It's not necessarily portable. Some lisps will use machine-independent bytecode, others use native code. I'm not sure which one Janet does.

Re: Janet – a Lisp-like functional, imperative programming language

#28
post #19

This looks really interesting, going to check this out later today. Anyone using Janet for anything that would care to comment on their experience?

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 Demo of pixel editor: https://www.youtube.com/watch?v=KOBi805nxNc Freja: https://github.com/Saikyun/freja --- My experience has overall been very nice. I come from Clojure, and comparing to that: - so nice…

Why do you mean by ‘throw exceptions from C’? C has no exceptions.

Re: Janet – a Lisp-like functional, imperative programming language

#29
post #10

Why use this over Chicken Scheme?

A copy-paste from "Use Cases" in Janet's README.md: Janet makes a good system scripting language, or a language to embed in other programs. It's like Lua and Guile in that regard. It has more built-in functionality and a richer core language than Lua, but smaller than GNU Guile or Python.

I like using Hy for these use cases. Because it gives you access to all of the Python module ecosystem while staying in a Lisp-like language.

Re: Janet – a Lisp-like functional, imperative programming language

#30
Off topic: Is it just me or are there any others who find naming programming languages with women's names a bit weird?

Julia, Janet, Eve...

I understand the guy referring to his car as his "girlfriend" and give it a women's name. I just can't feel the same about tech.

I guess this may be the nerd's way of immortalizing their sweetheart, but if I was a woman I'd rather prefer to be a car and not a programming language.

A programming language doesn't feel much anthropomorphizable to me, let alone lady-like.

Women, what do you think?

Post reply on HN