The Janet Language
141–150 of 203 posts
Re: The Janet Language
#142Earlier quoted context omitted.
I went there, saw the Lisp syntax, and noped back out.
Same reaction here... wow that is a rough looking language. Then again I always disliked those kinds of languages like Clojure. The syntax is just too much for me. I feel like if I used it, it would atrophy my skills in other more traditional languages.
The opening paren is simply relocated to the other side of the function name or keyword.
What we're experiencing is just a cognitive bias which causes us to prefer the more familiar over the less familiar ([the mere-exposure effect, also called the familiarity principle](https://en.wikipedia.org/wiki/Mere-exposure_effect)).
I've never used a Lisp-family language, but I find the reaction against parentheses to be overblown.
The reading order of the code is also _consistent,_ rather than the frequent switching between infix notation, prefix notation, and postfix notation which we have to learn and parse in most languages outside the Lisp family. This is a benefit which deceptively looks like it is _more_ complicated, despite being simpler to parse visually (and otherwise). Another example of the familiarity principle at work.
Re: The Janet Language
#143Earlier quoted context omitted.
Same reaction here... wow that is a rough looking language. Then again I always disliked those kinds of languages like Clojure. The syntax is just too much for me. I feel like if I used it, it would atrophy my skills in other more traditional languages.
The funny thing is that it's _not_ more parentheses, roughly, than one would expect to find in any Algol/C-inspired language, like C# or JavaScript. The opening paren is simply relocated to the other side of the function name or keyword. What we're experiencing is just a cognitive bias which causes us to prefer the more familiar over the less familiar ([the mere-exposure effect, also called the familiarity principle]…
Re: The Janet Language
#144Earlier quoted context omitted.
var distance = sqrt(x * x + y * y) That is something very similar they may had in high school.
Math notation also features one-letter variable names, weak typing and lots of ambiguity. Do you want those in code?
Let me disagree! The type is always one, Number (not Int or Float).
Re: The Janet Language
#145I love Lisp (particularly Scheme), and heard that Janet was strongly inspired by Lisp and is "really Lisp underneath", but is really fast and strong at math, so I thought I'd give it a try, and after learning it I started wondering to myself, "why am I not simply using Lisp?" Though arguably lispy, Janet just wasn't lispy enough for me. It was missing the simple, elegant sexp syntax I dearly loved, and I started to w…
Uhm, sorry for asking, but are you sure you're not mistaking Janet and Julia?
I wish I could take it back, but HN won't let me delete my post. I apologize. Mea culpa.
Re: The Janet Language
#146Oh hey! Nice to see this on the front page here. I love Janet -- I've been using it for about year and a half, and it's now my go-to scripting language when I need something more powerful than bash, or when I want to hack on goofy little side project (some examples in my profile). Parsing expression grammars (think, like, declarative parser combinators?) are a really great feature for ad-hoc text parsing -- and nicer…
I went there, saw the Lisp syntax, and noped back out.
Re: The Janet Language
#147One thing that bothers me about languages that compose functions like this f(g(x)) is that when programming interactively f is typically an afterthought. So, you start out with g(x) and then need to go all the way back and add f . Similarly, when x turns out like it needs to be elaborated, and you either have to go all the way back, or edit the expression in place making it longer and inevitably facing problems with…
It's really just about readability preference though not ease of editing, lisp like languages will have paredit/sexp editing shortcuts in your editor, so when you're on (f x), you press one key and it's turned into ( (f x))
Re: The Janet Language
#148[dead]
Spork has a regex-like syntax for constructing PEGs, but the semantics are slightly different.
And http is also part of spork, which you have to install separately. (jpm install spork)
Re: The Janet Language
#149Earlier quoted context omitted.
Math notation also features one-letter variable names, weak typing and lots of ambiguity. Do you want those in code?
> weak typing Let me disagree! The type is always one, Number (not Int or Float).
Re: The Janet Language
#150Earlier quoted context omitted.
Uhm, sorry for asking, but are you sure you're not mistaking Janet and Julia?
Oops.. I think you're right.. It was Julia, not Janet... now I feel like an idiot, and apologize for my uncalled-for, unfair, and undeserved mischaracterization of Janet, a language I never tried. I wish I could take it back, but HN won't let me delete my post. I apologize. Mea culpa.