Hacker News new | ask | show | jobs
by frompdx 1706 days ago
I use Janet most often as a glue for shell utilities using the sh package (https://github.com/andrewchambers/janet-sh). It's a great tool for building small containerized jobs. I think it has a ton of potential as the ecosystem grows and matures.

Some rough spots:

- No canonical http client. There are a few attempts at wrapping libcurl but nothing complete and well documented yet. However, the creator of Joy framework for Janet does have an http client library.

- The main http server circlet is MIT licensed, but it is built on top of Mongoose, which is GPL/paid commercial. Something to be aware of if you want to distribute binaries made with this library.

- I have never been successful getting any of the UI or drawing libraries to work.

- Naming of packages is a bit confusing even if you have watched the Good Place and are aware of all of the inside jokes.

1 comments

> 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 licensed, but it is built on top of Mongoose, which is GPL/paid commercial. Something to be aware of if you want to distribute binaries made with this library.

While I haven't used it outside of development, chidi is MIT licensed. :) https://git.sr.ht/~pepe/chidi

When I tried to use jaylib I was not able to get it to work at the time. Might have to give it another shot.

The http server used in Chidi is actually fairly new and I was not aware of it. It is part of the spork package. About two months ago I chatted with the creator of Janet about whether or not an http server will be added. He said it would not be added to core, but it looks like he added to spork about a month ago. It looks like it is a pure Janet implementation so there should be no licensing conflicts. I'll have to try it out.

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.
Will do, thanks!
The Mongoose github says it's MIT Licensed https://github.com/Automattic/mongoose
Different mongoose in this case: https://cesanta.com/
Doh!