Hacker Newsnew | past | comments | ask | show | jobs | submit | rambrrest's commentslogin

somehow i also never got the idea around these languages like lisp. I remember i studied them in school - but i quickly forgot and never got around to relearning it.


It took me probably 5 years of writing Clojure before it clicked. Once you get used to structural editing and repl driven development, it’s really hard to go back to syntactic languages.

It’s kind of like in treesitter style editing, where you can “swap these two arguments,” “select this function,” “wrap this in a try block” with a single keyboard command… but way more standardized and granular. Plus with the ability to execute anything you highlight

All that and then you realize you can store code as data (since it’s just a data structure) and run data as code.

I think most programmers don’t realize how arbitrary the difference is between code and data until they get used to using LISP.


Spot on. For me, it clicked with Common Lisp, 15 years after I graduated from university. Now, Clojure is my daily driver. And it’s extremely difficult to explain to people. I’ve gotten to the point where I don’t even try. You’re right about all the things you mentioned. Once you discover structural editing, everything else seems primitive, on the level of cavemen playing with rocks. But it’s not just one feature that makes Lisp better. It’s all of it which interrelates and creates a powerful synergy (I hate that word, but in this case it’s appropriate) that just isn’t matched by anything else. There are other languages that have a similar vibe, notably Forth and Prolog, but they are often misunderstood, too. Honestly, that’s my real test of whether someone is a senior programmer: do they understand and at least have an appreciation for these languages, even if they don’t program in them everyday.


The idea is that instead of having to learn tens of different syntactic constructs with subtle and often arbitrary differences, you just have parentheses and use them to build everything.


This is such a undervalued benefit, once you've learned s-expressions, you can basically learn a bunch of languages without having to learn completely new syntax. It'll be slightly different, with different idioms and names, but a hell of a lot easier than doing the same across every "It's like C but 50% of the syntax is different actually" language out there, which is most of them.


Is the syntax really the stumbling block for most languages? Would Rust's lifetimes or Swift's isolation rules be easier if they used more parens? Are the scoping rule differences between Emacs Lisp and Scheme easier to comprehend because the syntax is similar?


Yes, a commonly occurring stumbling block for me is trying to use one language's syntax while actually programming in another, especially when it comes to all the Algol/C-like language, I probably mix things on a daily basis.

The concepts would be easier to grok up front if they just used normal function calls instead of "And now for this special syntax that only exists for this particular feature" which just adds more things to remember, instead of just the concepts themselves.


> Would Rust's lifetimes or Swift's isolation rules be easier if they used more parens?

For me, certainly. But it's not a matter of adding parens, it's more removing extra syntax.


well sometimes you get complaints in particular languages that someone has written code like they are a Java programmer, or their code is not rubyish enough, or pythonic enough, and so on.

So often people coming from one linguistic syntactical style express themselves in that style which makes their code in the new language less understandable or maintainable.


Yes it is, because as soon as programmers step out of the most basic language level (which is kinda similar in most mainstream languages) there's a bunch of wildly different concepts, with wildly different ways of writing them. Writing them in isolation might be manageable, but it's combining them effectively that gets hairy very quickly, unless one is very experienced in said language. But then, translating that to OTHER languages becomes a bar that is too high!


That just moves the subtle and often arbitrary differences to the functions and macros you use.


The kind of subtle difference I’m talking about is that in C, you have to put a semicolon after struct {…} and do {…} while (…), but not after other curly brace constructs. What would be the analogue in Janet?


The first one is pretty C-specific and for example doesn’t exist in Java. Similarly for the second one, the reason is that `while` is used for two different constructs, which for example isn’t the case in Rust. These are just accidental complexities stemming from unfortunate design decisions in C. Having a richer repertoire of syntactic constructs doesn’t by itself imply such complications.

My point was, replacing n syntactic constructs by n functions or macros doesn’t reduce the cognitive load of having to know how each construct works. To the contrary, one can argue that everything having the same syntactic form makes it more difficult to distinguish different classes of features.


> The first one is pretty C-specific and for example doesn’t exist in Java.

It was just an example, most languages have quirks like this. I don’t know about Java, but in Rust you have the turbofish operator, whose necessity stems from using the less-than sign as both an operator and a delimiter.

> My point was, replacing n syntactic constructs by n functions or macros doesn’t reduce the cognitive load of having to know each of them.

The difference is that if you don’t know a function/macro, you can just read its documentation. If you don’t know a syntactic construct, where do you look?

Another advantage is that if you want to create new functionality similar to existing language features, it won’t stick out like a sore thumb. For example, you could create an until loop:

  (until (window-should-close)
    (draw-screen))
  # is equivalent to
  (while (not (window-should-close))
    (draw-screen))
In Rust, it would have to look completely different from a while loop:

  until!(window_should_close(),
    draw_screen());
  // is equivalent to
  while window_should_close() {
    draw_screen();
  }


Probably depends on whom you are asking. For me the essence is (1) having functions or procedures as the basic building blocks, not classes. (2) Having all the utility and higher order functions you need to deal with the functions and procedures first idea. (3) Having a very powerful syntax, that allows great semantic editing and is never ambiguous. Oh and can actually be extended in useful ways, without having to wait for a committee to decide upon "the one syntax to rule them all".


> can actually be extended in useful ways

I just made a library with [query syntax](https://codeberg.org/veqq/declarative-dsls) over various data structures a la sql:

    (import declarative-dsls/dataframes :as df)
    (def people (df/dataframe :name :age :job))
    (df/dataframe? people)

    (df/insert! {:name "Bob" :age 30 :job "Developer"} :into people)
    (df/insert! {:name "Alice" :age 27 :job "Sales"} :into people)
    (df/update! :set {:job "Engineer"}
             :where |(= ($ :job) "Developer")
             :from people)
    
    (df/save-csv people "people.csv" :sep "\\t")
    (def people2 (df/load-csv "people.csv" :sep "\\t"))
    
    (-> people2
       df/dataframe->rows
       df/rows->dataframe
       df/print-as-table)
Printing:

    job       age  name
    --------  ---  -----
    Engineer  30   Bob
    Sales     27   Alice
It also has datalog and minikanren (with s expr, sharing the same goals etc.) And it vectorizes like APL:

    (df/v + [1 2 3] 1 [1 2 3] 1) # returns: [4 6 8]
    (df/v + 1 {:column [1 2 3] :key [1 2 3]}) # returns: {:column @[2 3 4] :key @[2 3 4]}

    (df/v * [1 2 3] [[1 1 1]
                     [1 2 2]
                     [1 2 3]]) # returns: @[@[1 1 1] @[2 4 4] @[3 6 9]]
Or you can just use [J directly from Janet](https://git.sr.ht/~subsetpark/jnj):

    (jnj/j "3 4 $ i. 10") # returns: ((0 1 2 3) (4 5 6 7) (8 9 0 1))
    (jnj/j "$" [3 4] (range 10)) # returns: ((0 1 2 3) (4 5 6 7) (8 9 0 1))
The Joy Web Framework has a cool [db query dsl](https://github.com/joy-framework/joy/blob/master/docs/databa...) too: `(var account (db/find-by :account :where {:login (auth-result :login)}))`, used for a [web auth](https://codeberg.org/veqq/janetdocs/src/commit/848dcbd8e54ad...).

From my response, bigger than the article: https://lobste.rs/s/y0euno/why_janet_2023#c_lspe6n


> studied them in school - but i quickly forgot and never got around

Because industry lied to you, promising "simplicity and riches". The industry didn't just overcomplicate programming. It institutionalized the complication. Why? Because complexity is a moat.

Complex frameworks need certified experts. Certified experts charge more. Companies built around expertise need the complexity to persist. So the complexity gets marketed as sophistication.

They've promised: "Java/C# will get you hired anywhere", but you're hired to write xml (these days yaml). "OOP models the real world", they said. The real world doesn't have abstract factory visitors. "Design patterns make you senior", but you only learned workarounds for language deficiencies. "Learn the framework, get the job". Framework dies, you start over. "Specialization is valuable". you're now hostage to one ecosystem.

A programmer who understands fundamentals is dangerous to this system. The fundamentals:

- a function transforms input to output.

- composition builds complexity from simplicity.

- types describe what's possible.

- effects should be explicit.

And then you realize that Lisp is the skeleton key. All that above is Lisp, or came from Lisp. Every language is either: Lisp with different syntax, or C with different syntax, or arguing between the two.

If you learn Lisp, you don't learn a language. You learn what languages are. You're no longer a consumer of a programming language or two, or a few. You are native speaker in all of them.


Could be related to ips - i think it works well at my house - but when I am working from a specific cafe, it does not. But yeah seems to be getting more erratic lately.


Not too sure - an overload of water can actually be dangerous i think.


Jumping in here with relevant experience - because you're absolutely right.

In 8th grade (~16 years ago) my substitute biology teacher organised a "Water drinking competition" poised to elevate our understanding of stomach capacity, etc.

Two of us went to hospital, and ~5 (including myself) had to take multiple days off of school and recover.

It's very dangerous. He lost his job.


There was a lady who died from the same thing:

https://abcnews.com/GMA/jury-rules-radio-station-jennifer-st...


What was exactly his thinking here? Do biology teachers study biology because that’s kind of the first things you learn (saline concentration, kidney, etc…)


At least where I am, substitute teachers don't have to study anything in particular at all. You simply need to have completed X number of credit hours at an accredited institution, no actual degree or certificate is required and the coursework can be literally anything. As a newly-graduated history major I signed up to substitute teach out of desperation, and was sent everywhere from kindergarten to calculus.


Since no one is being quantitative, here's a medical source:

https://my.clevelandclinic.org/health/diseases/water-intoxic...

> In some people, water intoxication symptoms can develop after drinking about a gallon (3 to 4 liters) of water over an hour or two.

> More than 32 ounces (about a liter) of water per hour is probably too much.


Only if it gets ridiculous. Like after a marathon drinking a gallon on the spot (and dying from it).

Drink 2-4lt a day and you'll be fine.


It’s actually dependent on your individual biology and the environment that you are in.

You need more hydration in hot climates than in cold damp ones. Also your activity influences how much hydration you need.

Ps I don’t think the article is about how much water you drink. (Edited to make the last sentence clearer)


Water is poisonous in that too much of it will disrupt electrolyte balance and can be fatal.

It's one of the risks with taking MDMA, there are some documented cases where people died from drinking too much water when rolling.


Everything is poisonous at high doses even oxygen.


"[E]ven oxygen" is funny because it is absurdly reactive and will explode when given the opportunity, and way back when it destroyed pretty much all life on earth except the early cyanobacteria that produced it.

Edit: And yeah, I didn't imply what you're responding to, I described the mechanism for water poisoning.


This will only get worse imo - regardless of how Sam is perceived - there is anger against AI which is growing amongst the people. I think we as a society need to stop and have the conversation and be more thoughtful about how we integrate AI with everything.


More thoughtful? How about we don't integrate AI with everything as we seem to be polluting and burning down the planet just to keep AI running. There's also the rampant copyright infringing just to train the models, so I think we need to figure out how to correctly punish the AI executives first for breaking laws on such a large scale.


I don't think this is possible yet, because many people refuse to think AI would be eventually better than us at practically anything (at least anything virtual), they keep talking about what's "current" while I think it's completely irrelevant for that discussion, people need to assume extreme intelligence and orchestration tools (and robots) will be there, worldwide, it's a *fact*, not just a maybe.


It is actually entirely possible to discuss a solution for something that may or may not happen. If a hurricane is approaching, we don't typically require every person to agree the odds of landfall are 100% to start preparing shelters and stockpiling aid nearby. Not everything in the world is about the "AI skeptics" on the internet being dumb and wrong unlike you.


Your "fact" is pure vaporware and hallucination.


Let's talk about it again in 5 years, but 1-2 years from now, at the very least, coding will be over in the sense that the best models will do it better than the best (or the 99.99%). I don't think I'm hallucinating no, when my own work went from coding+managing+bunch of other stuff to just orchestrating and my output is just insanely higher and I literally have a bunch of friends that went from coding 8h a day to just "pretending to code" and just using a bunch of agents and get paid the same salary for working 30min a day, that's real, not an hallucination.


How are you/they instructing those agents? If you are writing detailed spec.md and reviewing those results, you are _still_ programming. Just in pseudocode effectively. I’ve seen enough session transcripts and detailed prompts that would have been easier to just write the code instead!


> in 5 years

That's literally the same argument that the blockchain gurus made, and each following year it was still 5 years in the future. I'm getting strong Real Soon Now™ vibes.


Bitcoin was never actually valuable for the average person except if they got lucky by timing the speculation bubbles right, or if they were buying illegal drugs online.

Lots of AI tools already add actual value and they're only getting better. Every software dev I know uses Claude at some level. Whether it will be the next trillion dollar unicorn might be overhype, but in terms of demonstrating its general utility, it's already there. No need to wait 5 years.


It's really 2 very different things, only the "shilling" might be deja-vu.


Haha. My favorite shillings will always be NFTs and the "let's do email job pointless meetings in Second Life and call it Metaverse". Although the former is/was pure shilling, and the latter is/was a horrible pipe dream shilled as useful.


A Machine Learning + Large Language model is one popular technology. Decentralized blockchain tokens is another popular technology. Besides hype, there's not much in common with those technologies.


> Every software dev I know uses Claude at some level.

here is my leve:, try to get claude to properly perform some boring boilerplate for me until the tokens run out or i get super angry and then do it myself in a rage.


I find the best use of chatbots re: software engineering is more of an office hours with the professor than it is a fellow colleague; Use it for specifics. Throwing things over the fence to it often causes a reach into the bag of garbage spaghetti code that is half the internet content.


I've had luck with 'explain this bullshit code i need to update that no-one has touched in two years and none of the committers even works here anymore'. Getting it to actually add the feature, a bit of a crapshoot.


what stack do you work in, and how are you prompting it?


Ah, the old 'you're using it wrong'.

Either it's smart or it's not.


In my experience it IS very smart for 90% of use cases. I'm curious to identify how someone could be using it in a way where that's not the case.

I hated AI tools a year ago and now I use them every day. If someone's opinions of AI were last updated > 6 months ago I don't think they've really given it a shot.


thank you.


If you said "This car is stupid, I can't drive it" and it turned out you weren't putting the key in the ignition...


my dude, i stopped listening to your pompous ass, take a hint.


Clearly you didn't ;)


No, AI has real, immediate, large-scale industrial and scientific applications. Cryptocurrency is a massive disappointment, but AI has genuine potential value.


> genuine potential value

That's some beautiful mental and verbal gymnastics.


That's some cynical ignorance.


common, that's very different, that's something current with practical use-cases that are already being implemented across all companies, I don't even know why we compare this with blockchain, blockchain is just some fancy resilient DB with proofs in the end.


or elson and fsd.


Sounds backward to me - why would you need a backend for AI coded apps - if you create a new backend - you also have to 'teach' the LLM how to use it - how do you imagine doing that ?


We've been around long enough that the LLMs already natively know how to use us!

If you give them a little bit of context they can use the platform fully.


Somehow I liked the goal of Beyond meat, but could never get past the fact that it is too "processed". My rule of thumb regarding food is that the less the processing, the better. I think I was the ideal demographic - meat eater, who doesnt want to kill animals. Id rather have vegetarian alternatives rather than beyond meat.

I think this is an example of an idea which looks great in the hype phase, but doesnt translate to real world traction.


It’s a company that turns plants into meat like substance. There is no plant that grows like this, of course it has to be processed to get from its original form to the new form.

Likewise, not all processing is bad. Cooking food is a form of processing and just makes the nutrients much more easy to digest.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: