Live data from Hacker News

The Janet Language

janet-lang.org

71–80 of 203 posts

Re: The Janet Language

#71

The lisp style syntax is jarring

Honestly, to me it is unreadable. Defining function inside a function inside yet another function where you use a for loop kind of function.

It requires a much different line of thinking to be applicable in the real world, which goes against historic human nature of following specific instructions, one instruction at a time.

Re: The Janet Language

#72
It's a shame the new Lisps tend to not rip off Common Lisp's type system, being able to declare my types and having SBCL admonish me when I'm doing something stupid is something I would hate to lose.

Re: The Janet Language

#73
post #21
post #19

Earlier quoted context omitted.

Normal people prefer syntax-less, unambiguous lisp-languages over the mess we have now. Just look at Javascript, rust or C++ and tell me normal people prefer that. Only worse languages win, because people are masochochists, but throwing away this possible user base is always a win.

var distance = sqrt(x * x + y * y) That is something very similar they may had in high school.

Literally a one-liner that is way more readable than whatever that was in the OP example.

Re: The Janet Language

#74
post #72

It's a shame the new Lisps tend to not rip off Common Lisp's type system, being able to declare my types and having SBCL admonish me when I'm doing something stupid is something I would hate to lose.

Isn’t it more accurate to call that unspecified SBCL behavior than “common lisp’s type system”?

Re: The Janet Language

#75
post #42

Earlier quoted context omitted.

The empirical evident would be against you, as tens of millions of programmers prefer writing code in those other languages that lack the parent :-)

They may or may not. I prefer lisp, but I mostly program in TypeScript and Go. My theory is that if most programmers tried lisp for a month or two, they’d end up preferring it.

I learned lisp (well, mostly scheme) just enough to be dangerous - and to have a lot of fun.

I don't end to find myself -writing- lisp very often but in a lot of cases I end up -thinking- in lisp and then translating across to whatever language I'm implementing in before I start typing.

Re: The Janet Language

#76
I think the language is unreadable. For me, the purpose of a programming language is to let a human talk to a machine. Show me (for instance) control flow for the example function on the home page. It just isn't making things easier

Re: The Janet Language

#77
post #35
post #33

Earlier quoted context omitted.

I think its a pretty nice language. Those extra bits of syntax that makes it "not a lisp" are mostly around defining "not list" kind if data structures. I find it practical.

What data structure isn't just a list with extra steps?

…anything that requires hashing as a fundamental part of the guarantee. Which happens to be quite a lot of the structures most of us use every day. Sets, maps, etc.

Re: The Janet Language

#79
post #76

I think the language is unreadable. For me, the purpose of a programming language is to let a human talk to a machine. Show me (for instance) control flow for the example function on the home page. It just isn't making things easier

How does the example not show control flow?

Re: The Janet Language

#80
post #38
post #33

Earlier quoted context omitted.

I think its a pretty nice language. Those extra bits of syntax that makes it "not a lisp" are mostly around defining "not list" kind if data structures. I find it practical.

Lisp usually has a lot of non-list data structures like arrays. records, strings, classes/objects, hashtables, ... For some data structures there is built-in syntax and with an extensible reader (the extensible parser for s-expressions) the user can add additional syntax. Janet uses a non-extensible parser for the data syntax. What Janet makes a 'not really a Lisp' is that "LISP" stands for "List Processor". Janet is…

An array is just a different way to implement a list data structure.
Post reply on HN