News for hackers. Stuff that matters.
Re:The Egison Programming Language by pasquinelli on Saturday April 29, 2023 @06:43PM (#35757988)
>>> why do people do this

>> do what? write programming languages that you don't already know?

> Investing so much creativity into obfuscation of meaning.

that's just saying the same thing in different words. of course the meaning is obfuscated to you, you don't know how to read it.

Re:The Egison Programming Language by junon on Saturday April 29, 2023 @07:29PM (#35758319)
I don't know Ruby, and I'd argue it has dissimilar syntax to many other languages I use regularly (that's changed over the years but whatever, my point still stands).

I can still read ruby code, because it's still readable. Same with Lisp, which I never bothered to sit down and learn until about a year ago. Prior to that, I still had no problem reading and understanding it (perhaps not as intuitively as someone who writes it regularly).

The quoted example is, for all intents and purposes, gibberish to me. And I have worked with CoQ.

Re:The Egison Programming Language by roetlich on Saturday April 29, 2023 @09:14PM (#35758845)
Well, and to me this syntax makes sense intuitively. And to most beginner programmers, all code looks very hard to understand. I'm really bad at understanding pgsql, I dont't like it at all. People just have different experiences.

Ruby still has algol-like structure, like most common languages. And basic lisp syntax is "normal" function calls with the parens moved around.

Of course, some things are objectivly more complex than others, but making that argument here requires a bit more evidence.

Re:The Egison Programming Language by pmontra on Sunday April 30, 2023 @02:55AM (#35760250)
I'm with you about all code is difficult to beginners. About language designers, they should decide who they want to address with their language and how popular they want it to be. If they want to become mainstream and they don't have a way to force people to use it (example: Apple with Objective C and Swift) then they should make a language with a syntax similar to something already mainstream. Example: Elixir got reasonably popular and in its early days it was common to think about it as a functional Ruby. It is not. Anybody using it would find it very different from Ruby by the end of the first day. However there is at least a correspondence between many Module.function / Class.module names in the standard library and the same do / end general structure of code blocks.

My advice to any language designer aiming to mainstream status is to copy some curly braces language (Java, JS, C++) or Python. Then do any weird thing to them, but don't scare away millions of developers with your hello world.

Re:The Egison Programming Language by asimpletune on Monday May 01, 2023 @02:46AM (#35769756)
What is missing from what you’re saying, I think, is representing fundamentally new paradigms. That’s why the syntax is never going to be familiar. It’s not hello world, it’s defining types based on a mini-syntax. If the advice you’re giving to language designers were followed, that simply wouldn’t be possible, nor would virtually anything else besides what you already know how to read in “your” syntax.
Re:The Egison Programming Language by anonzzzies on Sunday April 30, 2023 @01:02AM (#35759814)
Coq is quite readable imho. I work mostly with k, Ocaml and Haskell (trading); I find ruby unreadable. I find it extremely ugly and my brain simply sees it as line noise, while k (and Egison by the way) reads fine. Each their own, I guess.