r/janetlang • • Jul 28 '25

Most Janet Discussion Happens on this Zulip

Thumbnail
janet.zulipchat.com
13 Upvotes

r/janetlang • • Jun 02 '21

Release of JanetRS v0.3.1!!!

12 Upvotes

I just released a new version of the JanetRS crate. A high level binding library to inter-op with Janet using Rust code. With it it's possible to embed Janet with your Rust project and to create Janet libraries using Rust.

In this release there was a bunch of types that where considered done for the time being, as in the exposed API is probably good to use, new methods for some types and some fixes.

Some highlights:

  • New trait DeepEq for value by value comparison between Janet types on the Rust side

  • Redesign and expansion of the JanetAbstract API and IsJanetAbstract trait

  • API for interacting with the Janet Garbage Collector

  • Overall better docs (could use lots of improvements yet)

  • unsatable!! Opt-in Rust Nightly-only features: Expose Janet scratch memory API through Rust Allocator trait.

For full list of changes, check out the repository CHANGELOG file

If you want to test make a Janet library with it, here is a template to use as base, another good example is this library adding some more function to work with buffers and strings.


r/janetlang • • Dec 30 '21

I was able to compile Janet for the Atari ST

Thumbnail
bsd.network
11 Upvotes

r/janetlang • • Mar 23 '26

flymake-janet: A Flymake backend for the Janet language [v0.2.0]

Thumbnail
github.com
10 Upvotes

r/janetlang • • Aug 10 '25

JanetDocs.org now Supports 54 Packages!

Thumbnail janetdocs.org
10 Upvotes

r/janetlang • • Feb 12 '21

Janet 1.15.0

Thumbnail
github.com
9 Upvotes

r/janetlang • • 14d ago

pg_scalpel: a Janet interpreter in a live PostgreSQL backend

Thumbnail
github.com
8 Upvotes

r/janetlang • • Jun 30 '26

Janet 1.10.1 Stdlib, organized by topic

Thumbnail
gist.github.com
8 Upvotes

r/janetlang • • Sep 01 '21

Release of JanetRS v0.4.0

8 Upvotes

I published a new version of JanetRS crate. A high level binding library to inter-op with Janet using Rust code. With it it's possible to embed Janet with your Rust project and to create Janet libraries using Rust.

In this release there was a a bunch of breaking changes, but all for a better design of the library and to support the new Janet feature, having source maps informations.

Some Highlights

  • Possibility to define function arity in the #[janet_fn] to include arity checks

  • #[janet_fn] magically produces the source maps for you

  • The new macro declare_janet_mod! are able to use the source maps produced by #[janet_fn] attribute when declaring your Janet modules/libraries

  • Redesign some of the JanetEnvironment and JanetClient to receive definitions, variables and C functions to reduce amount of functions and support source maps

  • Support for JanetFile and JanetRng

For full list of changes, check out the repository CHANGELOG file

If you want to test make a Janet library with it, here is a template to use as base, another good example is this library adding some more function to work with buffers and strings.


r/janetlang • • Aug 23 '21

First Alpha release: J in Janet

Thumbnail git.sr.ht
8 Upvotes

r/janetlang • • Feb 05 '21

Osprey is a sinatra inspired framework for writing web applications in janet quickly

Thumbnail
github.com
8 Upvotes

r/janetlang • • Dec 10 '20

Bagatto: a transparent, extensible static site generator. Write sites in Janet.

Thumbnail bagatto.co
8 Upvotes

r/janetlang • • Oct 03 '20

Janet 1.12.2

Thumbnail
github.com
8 Upvotes

r/janetlang • • Sep 29 '20

How‑To: Using PEGs in Janet

Thumbnail articles.inqk.net
8 Upvotes

r/janetlang • • Sep 24 '20

Joy Framework: A web framework written in janet!

Thumbnail joyframework.com
8 Upvotes

r/janetlang • • Apr 25 '20

Puny GUI – A tiny cross platform GUI Kit in Janet

Thumbnail
ahungry.com
8 Upvotes

r/janetlang • • Jun 30 '26

What Criticism/Problems or Missing Features Requests do you have for Janet?

7 Upvotes

I mostly talk to people in the zulip, but some different/outside voices could be useful. This way we can make progress on those things. :)


r/janetlang • • Sep 19 '26

varray - typed arrays for 2-3 magnitude faster operations

Thumbnail
codeberg.org
6 Upvotes

r/janetlang • • Jul 23 '26

Janet in rust ?

6 Upvotes

Has anyone embedded Janet in rust ? I’m working on a prototype and would be interested in hearing your experience.


r/janetlang • • Aug 17 '25

A Practical Combinator Library

Thumbnail git.sr.ht
6 Upvotes

r/janetlang • • Dec 13 '25

Solving Advent of Code 2025 in Janet: Days 5–8

Thumbnail abhinavsarkar.net
5 Upvotes

r/janetlang • • Dec 05 '25

Advent of Code 2025 in Janet: Day 1–4

Thumbnail abhinavsarkar.net
5 Upvotes

r/janetlang • • Oct 15 '23

Should I go Janet first or Clojure?

5 Upvotes

Pretty new to coding. Heard Janet does functional and imperative so may be easier to grasp in the beginning than Clojure. Planning to learn Clojure anyway but curious if Janet may make it easier. Thoughts?


r/janetlang • • May 05 '23

Newbie Janet idiomacy(?) and performance

5 Upvotes

Hi, Just starting out with Janet and also using it as a teaching exercise and intro to lisp-likes for my ~13/14yo kids (and me actually).

We've just gone through translating some python code we wrote previously (sieve of Eratosthenes) to Janet, and I'd like thoughts on how Janet-idiomatic the new code is, what we could do differently, etc.

Also, the code has a big performance slowdown compared to python especially after the generator has run a while (say 100,000 primes), and I'd like advice on what kinds of things might speed it up. We did look into the source to look if there were any easy tweaks to the hash table (eg planning to add fibonacci hashing, but saw it was already being used). But a quick run with a profiler shows that most of the time is being spent in GC anyway.

Code:

(defn primes-sieve []
"
Prime numbers generator using sieve of Eratosthenes

Count upwards, building a 'sieve' of discovered primes, and discarding numbers that are
composites of primes already in the sieve.
Each entry in the sieve is a key pointing to a list of primes, where the key is
the 'next upcoming composite (multiple)' divisible by it's primes, eg { 45 @[3 5] }

For each number, check if it's one of the composites recorded in the sieve.
If it is, update the sieve with recalculated 'upcoming composite' entries for each prime
and delete the current entry.
If not, it must be a new prime; yield the number, and add an entry for it in the sieve.
"
(fiber/new (fn []
  (yield 2) # the only even prime, yield it explicitly.

  (let [sieve (table/new (math/pow 2 12))]  # preallocating the sieve to ~= how many primes will be requested (at least) gives a big performance improvement
    (loop [n :range [3 nil 2]]  # only odd numbers
      (if-let [current-composite (sieve n)]
        (do 
          (each prime-factor current-composite
            (let [next-composite-key (+ n (* 2 prime-factor))] # add 2*prime-factor, else composite would be even
              (if-let [next-composite (sieve next-composite-key)]
                (array/push next-composite prime-factor)
                (put sieve next-composite-key @[prime-factor]))))
          (put sieve n nil))
        (do
          (yield n)
          (put sieve (* n n) @[n])) # next composite is n^2. Anything less is composite a smaller prime, already in the sieve
        ))))))