[erlang-questions] Potion: was "Erlang for youngsters"
Sun Aug 17 05:56:15 CEST 2014
Has anyone ever done any /science/ on what makes a language easily learned,
especially by children?
Making language design decisions based on similarity to existing
popular/trendy languages reminds me of that joke about the drunk looking
for his keys under a lamppost. When asked where he might have dropped them,
he gestures off into the darkness. When asked the obvious question about
THAT, he defends his search strategy by saying that he's looking here
because the light is stronger.
To find the keys, we might be better off letting our eyes adjust to the
dark. That's what science is for: controlling conditions so that something
that's hypothesized can become distinguishable against background noise.
One nice thing about such an approach is that we can often break out of
habits of thought that have obscured reality by noticing something we
didn't expect, popping out against that background.
A very cool thing about the web is that enables this kind of research as
never before. Iterating over the standard core concepts and styles in
programming languages, one might propose syntax and semantics for each
concept, provide a code snippet for it, throw it out to many untutored eyes
and ask, "What do you guess this would do?" We might frame each of these
snippets with a theory about what works, only to discover that the
misconceptions that arise about it are telling us something very
interesting about some other aspect of coding entirely, not the one we're
trying to explore.
The results of such experiments might finally put to rest (in the minds of
the rational, anyway) many of these syntax religion conflicts, which are
mostly about as silly as the war between Blefescu and Lilliput. Such a
research program might also answer long-standing questions about much
deeper issues in programming language design, such as why it's been so hard
to pin down a definition of "object-orientation" that's both pleasingly
intuitive and semantically rigorous.
K-1 bldg 3F
Shinjuku-ku Tokyo 160-0023
Tel: +81 (3) 6890-1140
Fax: +81 (3) 6890-1158
Mobile: +81 (90) 5203-8682
"Love does not consist in gazing at each other, but in looking outward
together in the same direction." -- Antoine de Saint-Exupéry
On Mon, Aug 11, 2014 at 9:08 AM, <> wrote:
> > We do Potion which is a new language on the BEAM+OTP with a Lua inspired
> > syntax instead. This would have many benefits:
> > - It would make it much easier for a large group of programmers to get
> > into
> > the erlang fold.
> Where is the evidence for this?
> If Luerl didn't achieve it, why would Potion?
> > - The syntax would be simpler that elixir and would avoid some of its
> > idiosyncrasies.
> > - Lua is a fun language to start with.
> Did you ever have the feeling that when you got up in the morning
> you stepped into the wrong parallel universe?
> I've had Lua on my Macs for years.
> About once a year I stumble across it by accident while searching
> for something else, and say "oh YEAH, I forgot about that, time to
> put it to use." I then download the latest release, re-read the
> manual, wake up, finish re-reading the manual, and when I've
> stopped yawning, go and do something more enjoyable, like marking
> or cleaning the bathroom.
> As far as I can see, the two virtues of Lua are
> (1) Lua the *language* is a small ho-hum language with a
> small embeddable implementation that you can easily hook
> into and use as an extension language. That's presumably
> why LuaTeX exists.
> (2) Lua the *system* comes with things like luarocks and a
> useful library of user-contributed extensions like i18n.
> This is the bit I personally find attractive, or would
> if I couldn't get the things I want in other languages.
> A language that is only Lua-*like* sacrifices pretty much all
> of (2), which is to say sacrifices most of the reason why I
> would ever consider using Lua for anything.
> Perhaps the most ho-hum aspect of Lua is its heavy dependence
> on mutable state, making error handling the familiar terror it
> was before Erlang.
> done right and luarocks as npm. If the same engineering work
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions