Can you add Tree Capitator and an option to disable automatic harvesting of dropped items like in Luanti? This would make the game slightly more convenient.
I am working on a special version of Minecraft for Cyberix
Can you add Tree Capitator and an option to disable automatic harvesting of dropped items like in Luanti? This would make the game slightly more convenient.
lua is cool, ive been really enjoying janet lately. much more powerful language imo. fennel kind of bridges the gap at least, although it doesnt work with gmod because of their retarded lua changes
Replies: >>23610
What's so special about Janet? I went through their documentation and its syntax feel atrocious
(assert (deep=
@{ :x @ :y 2 }
@{ :x @ :y 2 }))
Like what the fuck is that @
Replies: >>23611
Cyberix did actually fucked up and erased all what I've written?
Sucks to be me. There were a lot I wanted to say and now it is gone. Anyway, I'll make it short as I don't want to write it all again.
I don't like Janet syntax because it uses too much syntax sugar and I really hate that because the main allure in Lisp for me is the abscence of syntax sugar and there is only one type of brace, not countless, which makes me not think of a structure but a program itself. If Lisp stands for "Lost In Stupid Parentheses" then Janet is "Lost In Stupid (@
I don't like Janet syntax because it uses too much syntax sugar and I really hate that because the main allure in Lisp for me is the abscence of syntax sugar and there is only one type of brace, not countless, which makes me not think of a structure but a program itself. If Lisp stands for "Lost In Stupid Parentheses" then Janet is "Lost In Stupid (@
Replies: >>23616
I broke cyberix again and it ate my message twice. Continuing.
..."there were braces". And it's no better than other languages like C at this point.
What I wanted to know is why you chose Janet over anything else, I am really curious as I don't really get why it even exists and what problem it solves other than being a NIH toy project.
Replies: >>23619
Fuck this site fuck this site why it breaks so many times on me. It is really buggy, someone should try harder making it an actually usuable messageboard. It's so fucked up when you write something with effort and bam it is gone. Or didn't send. Or was sent twice. I am not happy with this shit at all.
I enjoy writing janet more than lua thats why i chose it over other langs lol. its also good for scripting and there's an sh-like DSL that's super nice to use. Your code example doesn't make any sense and I don't think it would even run with those random @'s you added.
Replies: >>24164
Apparently, as admin stated, I was using BBCode which fucked up everything and that's why I had half of my shit deleted.
The code was taken from the Janet website https://janet-lang.org/docs/comparison.html
(assert (deep=
@{ :x @[@{:a 1} 3 @"hi"] :y 2 }
@{ :x @[@{:a 1} 3 @"hi"] :y 2 }))
The main criticism that I have towards Janet is that it uses Lisp syntax, but still introduces it's own data structures such as arrays, hash tables and other, instead of using lists, as God intended, thus making it not as flexible and powerful as Lisp, and I can't find a reason why the did it that way other than "being different from others for no apparent reason". The syntax sugar makes it more cumbersome to write and understand the program, again, Lisp doesn't have that issue. The example I provided is the most prominent (when I saw it I was like "what the fuck is that")
>I enjoy writing janet more than lua thats why i chose it over other langs lol.
I get it. But still... why? What are the downsides of Lua (or other languages) in comparison to Janet? Why writing in it is more enjoyable than in other langs?
I know, love and adore Common Lisp for example and I can write in Scheme easily, but I just wouldn't be able to write in Janet, Clojure, or those other new "Lisp-like" languages.
Chibi Scheme implementation is as embeddable as Lua, and it is really portable, extensible and overall seems great if you need scripting capabilities in your program.
I'll look into "sh-like DSL", that seems really interesting.
Replies: >>24165
https://janet-lang.org/spork/api/sh-dsl.html
here's the docs on that DSL
lua's 1-based indexing and lack of strong typing is what i dislike the most about it. still not a fan of that example because no real-world janet code looks like that. I've been writing a web server that lets you queue up Qobuz downloads in it and it's been pretty fun. Janet just works for me and I totally understand why you don't like it
here's a basic script i wrote in janet for rebuilding dwm and st:
#!/usr/bin/env -S jpm janet
# simple utility for rebuilding suckless software
(use spork/sh-dsl)
(defn main [& args]
(let [home (string (os/getenv "HOME"))
nproc (scan-number ($<_ nproc))]
(if (not= (length args) 2) (error "usage: rebuild [program]"))
(os/cd (string/join [home "/.local/src/" (args 1)]))
($ make clean all (string/join ["-j" (string nproc)]))
($ make install (string/join ["DESTDIR=" home "/"]) "PREFIX=.local/" "MANPREFIX=.local/share/man/")))