Replies: 3 comments 5 replies
-
Just touching on some specifics here. Perhaps other folks may have other comments. I didn't know about the I went looking through the
Is that where you learned about it? Incidentally, some lines above that, I see:
I tried both of those subcommands in succession, but it wasn't sufficient.
Looks like the following modification to
Then:
May be it would make sense for jpm's I've filed an issue at jpm's repository. Update: Looks like it was merged. |
Beta Was this translation helpful? Give feedback.
-
I've started a repository with some content to provide one example demoing some of what's listed at the Features section of the main page. Very much a work-in-progress, though there is a section on:
Feedback welcome. |
Beta Was this translation helpful? Give feedback.
-
Today I tried to set up a new project with jpm as described above and wanted to create the executable with jpm build instead of using quickbuild. After the creation of a new project with
Note: In the project.janet file in declare-executable you have to refer to the init.janet file with the folder name After this change In my view to create an executable should be the standard template for |
Beta Was this translation helpful? Give feedback.
-
I decided I wanted to spend a few hours learning Janet. My main goal is to play with the raylib bindings and compile it to executable. Here's my experience.
janet -h
and there is nothing about compilation, apart from the-k
flag which does seemingly nothing.jpm -h
has aquickbin
option to "Create an executable from a janet script with a main function.". Exactly what I need, but I have no idea which two arguments it requires from me. Alright then, I will create a project.jpm new-project
but no mention of it in the official docs. Still, it creates a basic project structure that prints "Hello!". Nice!jpm build
but nothing happens, not sure why.jpm
docs.jpm -h
again and see there's ajpm repl
command. Fire it up, evaluate(hello)
which has been defined in the project template, fails with "unknown symbol hello".(declare-executable :name "play" :entry "src/init.janet")
to my project.janet file, runjpm build
, and geterror: expected integer key in range [0, 5), got nil
. No idea what's going on here, time to throw the towel.I feel Janet could use with a better onboarding experience, with a simple tutorial that creates a project, runs it in a REPL, and compiles it to binary. Also the
jpm
docs, the main entrypoint and way of interacting with janet, are pretty sparse and don't even mention how to create a project or run the generated hello template.Please take this as constructive input, I do not wish to criticise the free time of others, I just this write-up makes it easier to identify what are the pain points for newbies to the project like me.
Beta Was this translation helpful? Give feedback.
All reactions