8 ms·
Carp – a statically typed, non-GC Lisp language
- brabel 4y agoAnyone using this for a real application? How does the performance look like? Is the tooling any good? Package manager? The GUI example in that page looks intriguing.
- tluyben2 4y ago> The GUI example in that page looks intriguing. That's just SDL[0] though; they implemented basic SDL bindings. [0] https://github.com/carp-lang/Carp/blob/master/core/SDL.carp https://github.com/carp-lang/Carp/blob/master/core/SDL.carp
- cercatrova 4y agoSomewhat related, "A Little Taste of Dependent Types," implemented in Racket: https://youtu.be/VxINoKFm-S4 https://youtu.be/VxINoKFm-S4
- tluyben2 4y agoThat's basically this[0] book, is it not? Great book (the entire series) by the way. [0] https://thelittletyper.com https://thelittletyper.com
- fithisux 4y agoA bit pricey for people not in US.
- Hirrolot 4y ago"Checking Dependent Types with Normalization by Evaluation: A Tutorial" [1] This one is cool too, I believe from the same author. I've read it recently and it makes pretty clear the intuition behind dependent types implementation. [1] https://davidchristiansen.dk/tutorials/nbe/ https://davidchristiansen.dk/tutorials/nbe/
- civopsec 4y agoHow’s the memory managed?
- djha-skin 4y agoBorrow checker like Rust.
- tmtvl 4y agoThey have documentation about that: https://github.com/carp-lang/Carp/blob/master/docs/Memory.md https://github.com/carp-lang/Carp/blob/master/docs/Memory.md It's interesting to see it's implemented in Haskell, looks like Clojure, has certain Rust-like semantics, and compiles to C. Quite an eclectic mix of languages going on here. Quite unusual that they don't mention anything about concurrency anywhere. The docs do say that there's a fork function, but there's no real information. Maybe the expectation is for developers to use C concurrency primitives?
- unsafecast 4y ago> Maybe the expectation is for developers to use C concurrency primitives? My guess is that they simply haven't thought much about this yet. One step at a time.
- timdeve 4y agoThat's correct, concurency is not supported right now. I have a POC for using pthread but essentially the borrow checker is not aware of it and so it's quite unsafe. Note: I'm a contributor.
- sph 4y agoFrom that link: (defn say-hi [text] (while true (if (< (length &text) 10) (println "Too short!") (println &text)))) Surprisingly similar to Rust, though I wonder if borrowing-by-default wouldn't be more readable than adding & everywhere. If you really need to give something ownership, you could have a sigil that maps to (move <var>)
- alrs 4y agoI'm That Guy. https://en.wikipedia.org/wiki/Common_Address_Redundancy_Protocol https://en.wikipedia.org/wiki/Common_Address_Redundancy_Prot...
- nice2meetu 4y agoI knew the name sounded familiar, that was it
- tluyben2 4y agoSomewhat related; Not statically typed nor maintained, but nice work nonetheless [0]. [0] https://github.com/barak/stalin https://github.com/barak/stalin
- cb321 4y agoI saw a talk once by Siskind who was a very smart fellow. The origin of the name Stalin in this case came from "Static Language { (I)mplementatio(N) }" in deliberate contrast with "Dylan" [1] which was a more dynamic dialect of Lisp being developed at the time whose principles he disagreed with. I think he worked on Dylan originally, so one could also say he disagreed with the principals as well as the principles. ;-) [1] https://en.wikipedia.org/wiki/Dylan_(programming_language) https://en.wikipedia.org/wiki/Dylan_(programming_language)
- pflanze 4y agoFWIW, I've wondered whether your use of the past tense meant that he died (maybe it's just me thinking that way), so I've verified that this doesn't appear to be the case, his CV [1] has been updated this year. [1] on https://engineering.purdue.edu/~qobi/ https://engineering.purdue.edu/~qobi/
- cb321 4y agoSorry, I meant the tense simply to refer to that one talk (to not overgeneralize), but I could see how it would lead to your question.
- Retr0id 4y ago> Automatic and deterministic memory management (no garbage collector or VM) What does VM mean in this context? I assume it stands for Virtual Memory - does that mean it bypasses the MMU?
- tazjin 4y agoI'm guessing it means virtual machine, which in this context might be better phrased as runtime. Think something like the JVM or Beam.
- tmtvl 4y agoWouldn't it mean Virtual Machine, so no BEAM, JVM, MoarVM, or whatever to handle the memory management behind the scenes? Which is kind of funny, I wonder if that means they directly call sbrk and brk rather than using malloc and free.
- BiteCode_dev 4y agoOptional parenthesis and optional separators always force me to pause and parse the code instead of scanning it, because I need to establish the context of every single operation. I'm sure Carp is interesting, but I would be so unproductive in it.
- sph 4y agoWhat do you mean by optional parentheses? Are you referring to the square brackets? Carp is inspired by Clojure, and in both [] is a reader macro that instantiates an array (a vector, as opposed to a list). I'm not a fan of using the array syntax to define function arguments.
- timdeve 4y agoI'm not sure what you mean by optional parenthesis. I'd say optional separators are a legacy feature, I don't think anyone writes Carp with separators. Note: I'm a contributor.
- lcedp 4y ago[flagged]
- deleted 4y ago[deleted]
- xtian 4y agoI think it was closer to 10 billion actually
- medo-bear 4y agovery insensitive to all the nazis he killed
- mpweiher 4y agoThat's not counting the Nazis. https://en.wikipedia.org/wiki/Excess_mortality_in_the_Soviet_Union_under_Joseph_Stalin https://en.wikipedia.org/wiki/Excess_mortality_in_the_Soviet...
- medo-bear 4y agotime magazine person of the year '39 '42 https://en.m.wikipedia.org/wiki/Eastern_Front_(World_War_II) https://en.m.wikipedia.org/wiki/Eastern_Front_(World_War_II)
- jasonwatkinspdx 4y agoTime PotY is not an endorsement. Several times they've given it to what you would call "influential villains."
- mpweiher 4y agoGuess who was man of the year in 1938? https://eu.usatoday.com/story/news/factcheck/2021/08/19/fact-check-hitler-time-magazine-man-year-1938-not-honor/8149799002/ https://eu.usatoday.com/story/news/factcheck/2021/08/19/fact...
- bongobingo1 4y agoBeautiful logo
- robofanatic 4y agoAuthors need to rethink the name if possible. I automatically read it as Crap language, maybe I have borderline dyslexia.
- tromp 4y agoI was wondering what happens if you make CARP an Object Oriented Language...
- riidom 4y agoAnd right after that, it should get an Extensible Types System
- 082349872349872 4y agoyou gain in gas savings what you lose in flexibility?
- tulio_ribeiro 4y ago
- WFHRenaissance 4y agoMost people on this site are American. Deal with it. Also, newsflash, you're speaking English.
- ptato 4y agoSo because most people on this site are American and might misread the title, the authors have to consider changing it? Why would the authors of Carp care about the demographics of Hacker News?
- dang 4y agoPlease don't respond to a bad comment by breaking the site guidelines yourself. That only makes everything worse. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- rawoke083600 4y agoVery cool... and congrats. But unless I missed it ? Where are the network,db and concurrency libs or packages ? I know its still early, but to code something practical in 2022, We need to be able to connect and talk to other programs. Missing: 1) Network lib (http client + server) 2) Basic Db access 3) How will concurrency work ? Threads ? CSP ? 4) Cryptographic functions (hashes etc) 5) enc/dec like json, xml etc Don't get me wrong Im very impressed with Carp, but i want to be able to actually use it :/ Please dont say 'the std lib needs to be small' and ppl can bring their own http and crypto libs. Its 2022 (at least for a little bit more) your language is up against a lot of competition that does include the basics. Go-Lang (I know not everyones.cup of tea) what they did do right from day one is include these basics in the stdlib. They really wanted ppl to use it to build stuff! Again congratulations on getting this far, been keeping an eye on it every now and again.
- gumby 4y ago> but to code something practical in 2022, We need to be able to connect and talk to other programs…i want to be able to actually use it Sounds like perfect things for you to work on to learn and enjoy programming with carp!
- rafram 4y ago> 1) Network lib (http client + server) There are protocols other than HTTP, too.
- rawoke083600 4y agoYou are 100% right, but I'm guessing it's a fair guess that if you ONLY can implement one (time/dev resources etc) you probably can't go too much wrong starting with HTTP.
- WFHRenaissance 4y agoYes, but less people care about those.
- guipsp 4y ago>Go-Lang (I know not everyones.cup of tea) what they did do right from day one is include these basics in the stdlib. They really wanted ppl to use it to build stuff! This is one possible philosophy. Another is the one rust is following.
- dang 4y agoRelated: Carp – A statically typed Lisp, without a GC, for real-time applications - https://news.ycombinator.com/item?id=28875051 https://news.ycombinator.com/item?id=28875051 - Oct 2021 (134 comments) Carp 0.3 - https://news.ycombinator.com/item?id=20368969 https://news.ycombinator.com/item?id=20368969 - July 2019 (23 comments) Carp: A statically typed Lisp, without a GC, for real-time applications - https://news.ycombinator.com/item?id=16829278 https://news.ycombinator.com/item?id=16829278 - April 2018 (39 comments) Show HN: A simple drawing and animation framework in Carp - https://news.ycombinator.com/item?id=15995146 https://news.ycombinator.com/item?id=15995146 - Dec 2017 (1 comment) A walkthrough of the internals of the Carp compiler - https://news.ycombinator.com/item?id=15986827 https://news.ycombinator.com/item?id=15986827 - Dec 2017 (1 comment) Carp, a compiled Lisp with type inference and a borrow checker - https://news.ycombinator.com/item?id=15778530 https://news.ycombinator.com/item?id=15778530 - Nov 2017 (109 comments) Carp Language - https://news.ycombinator.com/item?id=13087780 https://news.ycombinator.com/item?id=13087780 - Dec 2016 (1 comment) Carp: a statically typed lisp, without a GC, for high performance applications - https://news.ycombinator.com/item?id=12039268 https://news.ycombinator.com/item?id=12039268 - July 2016 (67 comments) Carp – a statically typed Lisp, without a GC, for high performance applications - https://news.ycombinator.com/item?id=12037783 https://news.ycombinator.com/item?id=12037783 - July 2016 (1 comment)
- deleted 4y ago[deleted]