News for hackers. Stuff that matters.
Re:Ask HN: How would a programming language look if designed... by j-pb on Friday December 17, 2021 @08:49AM (#29592027)
SQL made relational programming possible, when computer were too slow to do declarative programming. The modern aproach would be something more highlevel/declarative like Datalog, but given the context SQL made a good tradeoff in terms of programmer control and declarativity.

R is ugly because it encourages users to use it wrong. For loops are slow as a snail, but are what everybody uses and teaches, while the proper/fast way to wrangle data, with higher order functions like map, is hidden behind idiosyncratic names and obscure APIs.

Even the creator of R considered making it a language instead of the scheme library that it started iut as, as a mistake.

Re:Ask HN: How would a programming language look if designed... by Someone on Friday December 17, 2021 @09:14AM (#29592399)
I think something like QBE (https://en.wikipedia.org/wiki/Query_by_Example; about as old as SQL) is the way to let non-programmers write queries.
Re:Ask HN: How would a programming language look if designed... by marianoguerra on Tuesday December 21, 2021 @04:06PM (#29642092)
I'm working on that :)

Instadeq: A Live Programming Environment for End User Data Analysis and Visualization

Video: https://www.youtube.com/watch?v=mTEkYqnGICE Slides: https://marianoguerra.github.io/presentations/2021-live/

Re:Ask HN: How would a programming language look if designed... by Nekorosu on Friday December 17, 2021 @10:01AM (#29593044)
Looks a lot like declarative logical programming language in disguise (Datalog, Prolog).
Re:Ask HN: How would a programming language look if designed... by jhbadger on Friday December 17, 2021 @10:02AM (#29593054)
I was a huge fan of xlispstat in the 1990s (which I've archived on Github at (https://github.com/jhbadger/xlispstat), but the simple fact is that the majority of the statistics community just didn't like Lisp-like languages, and not only xlispstat, but newer projects like Incanter (statistics for Clojure) have pretty much failed as well. R meets its need far better than a Scheme library that nobody would have used. It's yet another example of "worse is better".