Live data from Hacker News

Janet – a Lisp-like functional, imperative programming language

github.com

41–50 of 143 posts

Re: Janet – a Lisp-like functional, imperative programming language

#41
post #11

I am a happy though very new Janet user. I started migrating my existing workflow optimization scripts (e.g. Git wrappers) to--and writing new ones--in Janet as of a few months ago. I used to use Perl but I switched to Janet as it is a much simpler language and VM, and being a Lisp is ~infinitely extensible. Janet has os/ and file/ packages, as well as a PEG system which mostly stand in for the best features of Perl.…

I've played with the idea of converting my bash path scripts to Janet, but haven't had the time yet. Have you experienced any downsides of using it for your optimization scripts?

Re: Janet – a Lisp-like functional, imperative programming language

#42

Maybe I'm just too pedantic, but this is not a functional language. Yes, you can write functional style code, but you can write functional style code in C, C++, Java, Python, JS, Ruby, Common Lisp, Scheme, etc etc. That does not make any of these languages 'functional'.

I've noticed that the language inspires how people write code, and the community.

Sure you can write functionally in Python with generators, first class and higher order functions, but its not really how the community writes (all the time).

Scheme isn't pure functional, it is mutable, but people write _as if_ it is immutable.

Re: Janet – a Lisp-like functional, imperative programming language

#43
post #21

Earlier quoted context omitted.

I wrote a few websites with it, notably: https://github.com/swlkr/janetdocs I also scraped together a large web framework and a small one: https://github.com/joy-framework/joy https://github.com/swlkr/osprey

I'm using your html library (a Clojure hiccup clone, sort of) and tw (tailwind) library, and often use janetdocs to find examples of how to use Janet functions. Thanks a lot man!

Hey! It's nice to see someone using the stack!

What's funny about tw is that it was kind of like a ghetto tailwind jit before it was released!

Janet can really help you move fast

Re: Janet – a Lisp-like functional, imperative programming language

#44
post #39

Earlier quoted context omitted.

Ada, Alice... Interesting question, but it might just be a yellow volkswagon effect. Quickly looking at Wikipedia's list of languages, theres Babbage, Bertrand, Cecil, Darwin, Dylan, Escher, Euclid, Euler, Godel, Hume, Orwell, Tom, Zeno, and probably a few others I missed. EDIT: Haskell and Pascal, how embarassing to miss those

also Haskell and Pascal

It's a shame that Haskell Brooks Curry did not have any more names because all three of his names have already been used for programming languages by now.

Re: Janet – a Lisp-like functional, imperative programming language

#45
post #30

Off topic: Is it just me or are there any others who find naming programming languages with women's names a bit weird? Julia, Janet, Eve... I understand the guy referring to his car as his "girlfriend" and give it a women's name. I just can't feel the same about tech. I guess this may be the nerd's way of immortalizing their sweetheart, but if I was a woman I'd rather prefer to be a car and not a programming language…

Ada, Alice... Interesting question, but it might just be a yellow volkswagon effect. Quickly looking at Wikipedia's list of languages, theres Babbage, Bertrand, Cecil, Darwin, Dylan, Escher, Euclid, Euler, Godel, Hume, Orwell, Tom, Zeno, and probably a few others I missed. EDIT: Haskell and Pascal, how embarassing to miss those

I also like to believe PageRank was named after Larry Page.

Re: Janet – a Lisp-like functional, imperative programming language

#46
post #30

Off topic: Is it just me or are there any others who find naming programming languages with women's names a bit weird? Julia, Janet, Eve... I understand the guy referring to his car as his "girlfriend" and give it a women's name. I just can't feel the same about tech. I guess this may be the nerd's way of immortalizing their sweetheart, but if I was a woman I'd rather prefer to be a car and not a programming language…

No, I don’t think that giving non-objects/not objectifiable things women’s names is weird. Nor that the necessary implication is that they are named after girlfriends.

Re: Janet – a Lisp-like functional, imperative programming language

#47
post #30

Off topic: Is it just me or are there any others who find naming programming languages with women's names a bit weird? Julia, Janet, Eve... I understand the guy referring to his car as his "girlfriend" and give it a women's name. I just can't feel the same about tech. I guess this may be the nerd's way of immortalizing their sweetheart, but if I was a woman I'd rather prefer to be a car and not a programming language…

It's like naming boats after women. A recognition of the distinct nobility and beauty of women our culture has lost track of.

Re: Janet – a Lisp-like functional, imperative programming language

#48

Earlier quoted context omitted.

(Not a lisp guy). What is an image and why would I want to run one? My best guess is that an image would be platform independent bytecode vs compiled executable?

I think of it as one of the defining features of Smalltalk, not Lisp, although there is plenty of cross-pollination. https://en.wikipedia.org/wiki/Smalltalk#Image-based_persiste... Janet's object system seems to be modeled after ideas first popularized in the Self language -- a Smalltalk derivative -- so there could be some direct inspiration there. https://en.wikipedia.org/wiki/Self_(programming_language)

Lisp systems had it first, specially Lisp Machines, that is where Smalltalk got its idea from.

Xerox PARC was pursuing three workstation based OSes in parallel, based on Lisp, Smalltalk and Mesa (later evolved into Cedar).

So the ideas regarding images, REPL with typo suggestions, OS wide debugging, code browser,.... were available across them all.

Re: Janet – a Lisp-like functional, imperative programming language

#49
post #30

Off topic: Is it just me or are there any others who find naming programming languages with women's names a bit weird? Julia, Janet, Eve... I understand the guy referring to his car as his "girlfriend" and give it a women's name. I just can't feel the same about tech. I guess this may be the nerd's way of immortalizing their sweetheart, but if I was a woman I'd rather prefer to be a car and not a programming language…

I mean, this is done well outside programming languages. See; for example, tropical hurricanes.

Re: Janet – a Lisp-like functional, imperative programming language

#50

Maybe I'm just too pedantic, but this is not a functional language. Yes, you can write functional style code, but you can write functional style code in C, C++, Java, Python, JS, Ruby, Common Lisp, Scheme, etc etc. That does not make any of these languages 'functional'.

Only for those revisionist folks that have decided Haskell is the baseline for FP.
Post reply on HN