Live data from Hacker News

EYG: A Programming Language for Humans

crowdhailer.me

51–60 of 69 posts

Re: EYG: A Programming Language for Humans

#51

Ha, very interesting. I just started using Gleam last week or so... I knew about it and loved Elm back in the day. Anyhow, will enjoy discovering EYG as well.

https://www.roc-lang.org/ is worth checking out if you are interested in a modern Elm-inspired lang

Re: EYG: A Programming Language for Humans

#52
post #46

Earlier quoted context omitted.

There is one example that succeeded and became the most widely used programming paradigm on the planet: Spreadsheets Though you might argue that the "programming language" part was rather accidental

And interestingly using Excel resembles pure functional programming in a lot of ways

It’s reactive programming in a functional style. I wouldn’t call it functional reactive programming though because that’s usually used to describe more robust languages like older versions of Elm before TEA.

Re: EYG: A Programming Language for Humans

#53

Earlier quoted context omitted.

from the article > My hypothesis > Developers deal with two broad categories of work. > - Describing the logic of the problem they are solving using language constructs like if, loop, var etc. > - Working with computers to run those problems using constucts like $PATH, /var/tmp and AWS. > There are a lot of humans who can do the first work fine but don’t have the time to master the second category. I call these human…

500 million years ago a former colleague created "Electric File Clerk" which became profile which became filepro which technically still exists today. It was a "RAD, rapid application development system basically the proto ms access. The idea was the user is a dentist or lawyer, not a developer, but needs to make their own software because at that time almost no canned software existed yet. The doctor or florist or w…

Aside: I support a court who uses a FilePro-based application that dates back, at least, to the mid-90s. I don't have to deal with the actual app-- just the underlying Linux boxes that run it. It seems reasonable.

Re: EYG: A Programming Language for Humans

#54

I generally don't think it's a good idea to develop a language for non-developers. It was tried before multiple times and the end goal has not been achieved. Sooner or later one realizes, that professional developers are still necessary, even for languages initially designed for "normies". But such a language is typically not good enough for them, it lacks necessary abstractions, flexibility, performance or something…

How can you say that when millions of non-programmers are using AI to write programs all of a sudden? The problem isn't with non programmers it's with the languages they've been given are usually written by people who are keen to write languages that conform to their sensibilities rather than the programmer's.

For example: I would say that 1-based indexing is pretty much required for a language targeting non-developers; Excel, SQL, R, Matlab, Cobol, Mathematica, Lua are all 1-indexed and all target non-developers. Most PL devs refuse to do this citing how unnatural it is for themselves to reason about, and how Dijkstra was right about the beauty of 0-based indexes. Sorry, but all that is irrelevant when you're trying to convince a non dev that "Actually it makes a lot of sense that the first thing is called 0". They hear that and they tune out because it asks them to abandon their familiar assumptions too early, and they're unwilling to do that on promises of it getting better.

So the first problem people have in making languages for non-developers is they make it like Python, because Python is considered an easy language for beginners. Big mistake, because then you've only appealed to people for whom Python is appealing. Those are not the people we're trying to get with a non-dev language, and besides we already have Python for that.

You look at the top languages used by non devs and you can see that they appreciate aspects of languages that devs do not, so that's why devs fail so regularly at this. But there are some success stories you point out.

Then there's of course the biggest example you forgot: Excel. And it's not a surprise this one is always forgotten by programmers because despite being a programming language it doesn't follow typical programming language conventions, and as a design artifact it sits well outside the design hornet's nest that is the C/C++/Java/Javascript/Python which comprise most of mainstream programming.

Finally there is LOGO - This one is often missed, but it's a lisp-like language that allowed small children to program complex applications like differential physics coursework which grad students find difficult to program, and they're able to do it simply by reframing the program into something they are familiar with like their own body rather than abstract concepts like integration.

They called this "body syntonic reasoning" and it was impressive because the language itself contained the pedogogical framing to enable this. If it hadn't and just said "Here's what a for loop is, now write programs!" it wouldn't have worked. This shows you in order to get non-developers to code, you have to approach them with an uncommon level of empathy for how they thin, and I don't know if most lang developers are up to that task.

Re: EYG: A Programming Language for Humans

#55
post #46

Earlier quoted context omitted.

There is one example that succeeded and became the most widely used programming paradigm on the planet: Spreadsheets Though you might argue that the "programming language" part was rather accidental

And interestingly using Excel resembles pure functional programming in a lot of ways

And it has array programming features, logging, and (time-travel!) debugging all intuitively graspable for most non-technical people.

I sincerely think there are lots of unlearned lessons in studying Excel.

Re: EYG: A Programming Language for Humans

#56
post #33

why this why we have llms? thats totally usless. I think all new programming langugaes are ueless right now with advancement of LLMs.

I don't understand your reasoning; LLMs and programming languages are different things. Like humans, LLMs use programming languages as tools, so the existence of LLMs doesn't obviate programming languages.

Re: EYG: A Programming Language for Humans

#57

Earlier quoted context omitted.

500 million years ago a former colleague created "Electric File Clerk" which became profile which became filepro which technically still exists today. It was a "RAD, rapid application development system basically the proto ms access. The idea was the user is a dentist or lawyer, not a developer, but needs to make their own software because at that time almost no canned software existed yet. The doctor or florist or w…

Aside: I support a court who uses a FilePro-based application that dates back, at least, to the mid-90s. I don't have to deal with the actual app-- just the underlying Linux boxes that run it. It seems reasonable.

In the filepro circles there is a famouse bit of history about a large user that once tried to migrate off of it, because obviously it's crap because it's ancient... and paid some shop to rewrite their existing filepro app in some current db framework, I think an oracle product but I don't remember, and they consumed some large amount of money and years, and in the end failed. The client sued the consultants and it actually went to trial and the lead developer of filepro at the time was called to testify as part of the whole thing.

Point was just, this old thing is certainly old and not exactly natural to integrate with anything else today, but, there must be something there such that it does the job people actually need doing, and even spending millions of $ and many man-years on the most bestest-currentest-modernest-kool-kidsest systems somehow fails to deliver a equivalent actual real world functionality the users already had, let alone better.

As magical as new frameworks undeniably are, there's always just something a bit out of touch, like they make the most sense to the developer of the framework and not the user of the framework.

Re: EYG: A Programming Language for Humans

#58

Earlier quoted context omitted.

So I poked around... this is really interesting. So you take language in text and make IR, but also could be made IR directly. That is very interesting. Potentially I could make a version without curly braces or some weird syntax and it could be compiled in IR and still be same language :). Kind of like MS and VB and C# haha. I like what you did so far, I will keep an eye, maybe help if I can.

I have a few weird syntax I've worked on in the past so this is definitely possible. Currently only the textual representation and structural editor are in the repo. The most different I have done is a layout where the AST was presented like a file tree. apply ├── int_negate └── 5

What if you just put the file tree in the AST... and hashed it all?

https://gist.github.com/conartist6/7dd40697140965ee343de93b9...

Re: EYG: A Programming Language for Humans

#59
post #2

Functional programming paradigms? Matching? Complex syntax? Sorry but either I've missed the point, or you've lost me. If we're trying to create tools for non-Developers to build software, this isn't it. You can pretty much already just ask Claude/Codex/whatever and it'll build you a thing™ and it'll probably work. You don't even need to read the code.

from the article > My hypothesis > Developers deal with two broad categories of work. > - Describing the logic of the problem they are solving using language constructs like if, loop, var etc. > - Working with computers to run those problems using constucts like $PATH, /var/tmp and AWS. > There are a lot of humans who can do the first work fine but don’t have the time to master the second category. I call these human…

The Op identify well the problem and the idea of the solution but the implementation is typically dev oriented.

A good example of the actual tool is FoxPro and similar (even better than MS Access based on the ideals of the article) and I observed being actually used by occasional "developers" that need more than Access/Vb/Excel.

I'm on the hunt for it with https://tablam.org but the main major pain point is to bring the actual UI. You can go anywhere with syntax and such, is how you connect to the rest where the magic must prove is real.

Re: EYG: A Programming Language for Humans

#60
post #55

Earlier quoted context omitted.

And interestingly using Excel resembles pure functional programming in a lot of ways

And it has array programming features, logging, and (time-travel!) debugging all intuitively graspable for most non-technical people. I sincerely think there are lots of unlearned lessons in studying Excel.

And that is without counting on Lambdas, VBA, Power Query.
Post reply on HN