12 ms·
Janet Programming Language
- burai 5y agoIs this how "the good place" is built and run?
- doctor_eval 5y agoNot a girl
- deleted 5y ago[deleted]
- nudpiedo 5y agoI understand the why for embedded DSLs for things such as database queries, regex and the like but a general purpose embeddable language? I wonder how many users these sort of languages have, aside from its creators and perhaps the company where it has been born. There are tons of embedded languages, many with libraries and all sort of utilities, why should someone invest themselves in such languages with all the risk it takes? Problems such as: additional build steps, security, ecosystem, train employees and maintainers into new languages, additional maintenance barrier, etc
- aoms 5y agoThats a lot of opening/closing parentheses.
- andi999 5y agoLooks like somebody learned the wrong lesson from lisp.
- codr7 5y agoOne word: macros.
- StreamBright 5y agoCould you count how many you got in your favorite programming language vs Janet/LISP?
- scotty79 5y agoMy favorite is coffeescript so difference is roughly about a lot.
- Heliosmaster 5y agothat's a lot of whitespace
- scotty79 5y agoBut only on the left side, and a bit in the middle. And you would put it there anyways in nearly all other languages just for readability. ;-)
- IncRnd 5y agoIt looks like a difference of somewhere between 7,239 to 32,767 per screenful of code.
- andi999 5y agoSo what is it good for? Edit:maybe my comment was too short, but for me it is important to know what problem a new language solves (better). And I seriously think the landing page does not explain it well/at all. I mean like: D is C++ done right with garbage collection (and of course expand from there). Zig and Rust are safe languages and aim to replace C (with different strategies). And of course more than one sentence. So if anybody knows what problem Janet lang solves, pls enlighten me.
- masklinn 5y agoThe home page does happen to have everything necessary: it has a basic examples, a few blurbs, and a "use cases" explanation: > Janet makes a good system scripting language, or a language to embed in other programs. Think Lua or Guile. Janet also can be used for rapid prototyping, dynamic systems, and other domains where dynamic languages shine. I could see the sections reordered, but it's hard to really fault this home page, it's pretty terse yet quite complete. The biggest issue I have with it is the first-time reader is hit by the community / contribution bits before even knowing what the language is about. A two-columns layout would probably be useful there. And while having a basic in-page repl is nice, improving the discoverability of the language through it (e.g. providing autocompletion and inline help) would be neat.
- andi999 5y agoI disagree. 'Think Lua' is not an good explanation. I mean if I want Lua, I use Lua.
- masklinn 5y ago> 'Think Lua' is not an good explanation. Do you have reading comprehension issues that you mistake examples for explanations and are blind to the actual explanations surrounding the examples? > I mean if I want Lua, I use Lua. That I know about Lua doesn't mean I want Lua. Hell, that I wanted lua in the past doesn't mean I'm closed to replacing it with something else. Given how well-known Lua is in the space, "think lua" is a rather good example.
- fasfsafsa 5y agojanet, natalie, julia ...
- mrkramer 5y agoAre they naming programming languages after their girlfriends and wives? :)
- jstx1 5y agohttps://channel9.msdn.com/Blogs/Charles/Stefan-Karpinski-and-Jeff-Bezanson-Julia-Programming-Language https://channel9.msdn.com/Blogs/Charles/Stefan-Karpinski-and... 18:52
- iddan 5y agoIn an interview with InfoWorld in April 2012, Karpinski said of the name "Julia": "There's no good reason, really. It just seemed like a pretty name."[
- Crestwave 5y agoJanet is a reference to The Good Place https://github.com/janet-lang/janet#why-is-it-called-janet https://github.com/janet-lang/janet#why-is-it-called-janet
- ModernMech 5y agoHuh, I thought given the logo it was a reference to Janet Jetson.
- masklinn 5y agoThat's a weird language. At first glance it looks like a hyper-imperative lisp (except turns out it doesn't Process LISts).
- schpaencoder 5y agoI guess it's easy to parse, and excellent for macros!
- galfarragem 5y agoIt's dead easy to get started. If you want to spend an hour playing with a "lisp" you're only a small download away. Clojure could learn a thing of two from this.. It's also not dogmatic. You can use mutable and immutable versions of the same data structure. Docs are concise: https://janet-lang.org/docs/index.html https://janet-lang.org/docs/index.html Full API is here: https://janet-lang.org/api/index.html https://janet-lang.org/api/index.html [edit] I fully agree that "getting started" on Clojure is easier than used to be. Anyway I still think there is room for improvement.
- monsieurbanana 5y agoYou're 2 clicks away from having a fully-featured clojure environment + an interactive clojure tutorial, thanks to Calva (vscode clojure plugin) running in the browser: - click here[0] - click on SSO provider More information here[1]. Of course, it'd be better to just use the Calva plugin with VSCode. That's a bit more than 2 clicks, maybe about 5. On another hand, I don't mean to say that it's easy to start programming on Clojure, merely that it's now easy to try it out. There's a steeper learning curve than python or JavaScript, specially on the tooling side. [0] https://gitpod.io/#https://github.com/PEZ/get-started-with-clojure https://gitpod.io/#https://github.com/PEZ/get-started-with-c... [1] https://calva.io/get-started-with-clojure/ https://calva.io/get-started-with-clojure/
- masklinn 5y ago> It's also not dogmatic. You can use mutable and immutable versions of the same data structure. However from their description and the complexity promises it looks like the immutable collections are literally just the mutable ones without mutation ability (similar to Java's immutable* wrappers) which greatly limits their effective usefulness. > Full API is here: https://janet-lang.org/api/index.html https://janet-lang.org/api/index.html Sadly even worse than clojure's which is already not great.
- rla3rd 5y agonext up, a highly opinionated language called "Karen"!
- fasfsafsa 5y agothey already made it: https://rust-lang.org https://rust-lang.org
- joelbluminator 5y agoIs it related to the Jackson programming language?
- IncRnd 5y agoThat's an interesting question, since Jackson was literally developed by someone named Michael Jackson.
- joelbluminator 5y agolol. I heard that Jackson is quite dead though. ... and here come the downvotes ...
- skohan 5y agoWhat is with new programming languages with women's names? It seems a bit cringey to me, like the guy in my first-year cs classes who would name variables after his girlfriend.
- skinkestek 5y agoIf you name it after men you get even more problems.
- deleted 5y ago[deleted]
- ModernMech 5y agoDylan, Haskell, Erlang, Pascal, etc. What’s the problem either way?
- deleted 5y ago[deleted]
- skinkestek 5y agoThese are older so I guess that is why. And no, no problem with me. I just pointed out one reason why people might prefer a female name for a project. Another valid reason might be because they want to bring some women into the spotlight in what is ofte perceived as a male dominated field.
- booleandilemma 5y agoAt least people aren’t naming their daughters after programming languages yet.
- skohan 5y agoTell that to my friend BASIC
- 5y ago
- xz18r 5y agoJust saying: in Flanders, 'janet' or 'jeanette' is an offensive slur for a homosexual man.
- terracottage 5y agoIn Flanders, people think they speak much better English than they do. Janet and janet are pronounced differently.
- mnming 5y agoI was a donator to Janet for a little while and then eventually stopped. I think it would be a great programming language if it arrives 5~10 years earlier. Highlights to me are: green thread, TCO, easy distribution, great interop with C, flexibility of choosing between imperative vs immutable data structures. However, I just couldn't find a good use case for it. For embedded programming, I would always choose Lua if not using Zig/Rust directly. For low latency backend stuff, I can use Clojure or NodeJS, which are much more performant and mature (Janet's performance is roughly on the same level with Lua without JIT). For general latency insensitive backend projects, there are just too many choices nowadays and Janet doesn't shine enough. If it arrives 10 years ago with these feature sets, I would love it!
- ducktective 5y agoHow Lua is viable in embedded? You mean microcontroller/low-level programming right?
- Banana699 5y agoEmbedded is a fuzzy category, specs range from <1kb Ram to the low megabytes. Some people even extend it till low end smartphones and things like raspberry pies which are like gaming PCs by mid 2000s standards. Lua is extremely lightweight and portable. The interpreter doesn't exceed 500 kb in the fattest build, and the used dialect is a strict subset of ANSI C that is equally comfortable running on mainframes as on Nintendo consoles. In short : If it has a C compiler and can spare 300 kb ram, it can run Lua. So people sometimes use it there.
- detaro 5y agoIndeed (see also "embedded Linux" being a thing), people insisting if something doesn't run on a tiny PIC it can't be useful for "embedded" is a pet peeve of mine. Depending on the context, "embedded systems" go even larger, although usually people stop calling it "embedded programming" at some point. Obviously many problems in large embedded systems are different from small ones, but others remain similar.
- eitland 5y agoInterestingly when submitting the latest tar.gz to Virustotal, Microsoft claims it contains Wacatac.B!ml Submitting one file at at time doesn't trigger it. Even packing up all the binaries and submitting that doesn't trigger is (and neither does packing up the rest of the files abd submitting them.) So I'm going to ignore MS on this one since no one else found anything suspicious either.
- technion 5y agoI've submitted a ticket about this. https://ibb.co/dQpKT3T https://ibb.co/dQpKT3T
- eitland 5y agoThanks, although I should say that I searched for a few minutes about this Trojan and it seems Microsoft antivirus has been reporting it on other projects as well for years (since 2019 at least IIRC) and in the support forums the most upvoted answer was that the only way to stop it except for reporting every single new version as a false positive to Microsoft was to get a certificate and start signing the software. I wonder if there is someone here from either Microsoft or Virustotal who could do something about it?
- technion 5y agoIt's a valid problem, but I think the root cause has been a lot of complaining and noone reporting it through the right channels. They've responded to my ticket with a fix, a refresh on virustotal confirms zero detections now.
- DennisP 5y agoI hope they never change the logo. It looks a lot like my mom, whose name was Janet. I'll probably end up trying out the language for that reason alone.
- jart 5y agoJanet is a cool language. Back in March, we managed to port it to Cosmopolitan Libc so you can build Janet code as an Actually Portable Executable. Here's the diff you need: https://github.com/janet-lang/janet/compare/master...ahgamut:cosmopolitan https://github.com/janet-lang/janet/compare/master...ahgamut... The Janet team helped us identify a lot of things we needed improve with our C library implemention too! While we've ported other languages too, like Python, Lua, etc. those users will still owe much thanks to Janet.
- mark_l_watson 5y agoThat is cool! Other commentators were asking about good use cases, and living in Cosmopolitan seems to fit the bill. I like the language, except I have never liked the “low parenthesis” Common Lisp loop/for macros, which Janet’s “for” loop reminds me of. Pardon the stylistic nit-pick.
- JasonFruit 5y agoI agree: it makes a necessary small special case a huge special language of its own.
- 41b696ef1113 5y agoTo be clear: do you package the Janet runtime + Janet code into a single run-anywhere executable? I have done a couple of toy utilities in Janet, and knowing I can produce a single distributable binary makes it even more appealing. As an aside, Cosmopolitan is news to me, but looks quite nifty.
- IncRnd 5y agoWhy was Janet created? There must have been a purpose or niche that caused its inception. If the reason was, "I wanted to write a language," that's not enough to use it in certain situations.
- jimbob45 5y agoSeems like the prevailing opinion is that the website needs a “Why Janet?” blurb because I looked at this and thought, “Why would I ever use this over Racket?”.
- yumaikas 5y agoFor me, Janet seems more practical than Racket, or I at least got over the hump of it better. I like Janet's function-like data structure access as well, I don't know of another Lisp-like that does that.
- uvtc 5y agoJanet is small, simple, efficient, and practical. For me it has nice syntax and sensible semantics. Great little package manager too. Very happy with and excited about Janet so far.