8 ms·
Elm 1+2: can't download X
- rudolf0 10y agoI wonder how a programmer from the 80s would react if they were given a time machine and this was their first experience with modern programming.
- matt4077 10y ago"I saw that debate yesterday – you people don't deserve these beautiful screens. Ohhh, glorious glorious pixels!" "Oh, you're only downloading the software you need, when you need it, from the network? That's smart, you must be really smart to fit all these pixels into 640k" "Who cares if everyone will need the 'core'. Back in the 80ies the rule is: if you can avoid a goto, doso!"
- rhinoceraptor 10y agoYou can download your programming environment through a ubiquitous computer network instead of mail ordering a set of floppies? That's amazing!
- bostik 10y agoI think they might be feeling quite at home. It's not like dumb thin clients and mainframes would be a new thing.
- daddykotex 10y agoCan anyone explain what might need a HTTP request here?
- tsneed290 10y agoMost likely lazy-loading libraries
- problems 10y agoLibraries for adding numbers, apparently?
- Skinney 10y ago+ is specified in the core library, so yeah.
- axihack 10y agoYep, lazy-loading core libraries.
- monodeldiablo 10y agoNaive question: How does Elm manage to bootstrap a complex thing like a REPL without using basic functions like '+'?
- cuddlybacon 10y agoThe REPL is written in Haskell. Elm doesn't target native or node.js yet.
- daddykotex 10y agoOk thanks!
- clifanatic 10y agohttp://github.com/1 http://github.com/1 It 404'ed before it got to http://github.com/+ http://github.com/+
- darfs 10y agoIsn't it the other way? http://github.com/1 http://github.com/1 does exist.
- ggregoire 10y agoFor those wondering what's Elm: https://news.ycombinator.com/item?id=12718224 https://news.ycombinator.com/item?id=12718224 (4 days ago) - Elm in Production for France TV http://elm-lang.org http://elm-lang.org - "A delightful language for reliable webapps. Generate JavaScript with great performance and no runtime exceptions."
- sotojuan 10y agoFitting. Elm's website and docs won't load without JS as well.
- damptowel 10y agoProbably because it's written in Elm ...
- marksamman 10y ago"This is true for the very first expression. That's because it is downloading packages and building everything. After that, it has all that information, so it's faster." - https://github.com/elm-lang/elm-repl/issues/128#issuecomment-251759225 https://github.com/elm-lang/elm-repl/issues/128#issuecomment...
- jack12 10y agoIt still seems to need to at least check for the latest version after that first install, I have a ~4 second wait before evaluation of the first expression on every single launch of the REPL while it hits up their package server. And if you have no internet connection or the package server is down, the REPL will not evaluate any expressions at all, it just shows an HTTP error message on every input (after a timeout). The only option for offline usage seems to be running the REPL inside a configured elm project directory which has had the core packages downloaded/installed: https://github.com/elm-lang/elm-repl/issues/54 https://github.com/elm-lang/elm-repl/issues/54
- davesque 10y agoIs this bad since it can't execute a simple command without a library? Or is it good since the error message was so descriptive? If the consensus is "bad": I imagine at some point elm made the decision to make things highly modular (something which people usually like) and lazy (another thing people generally like), so why are those things a problem in this case? Update: Mostly what I'm observing here is that the tweet basically implies that the author(s) of elm should be ashamed of themselves for designing (free) software that is so obviously wrong. Publicly shaming projects like this is dumb. I'm not convinced it's ever accomplished anything other than kicking off big flame wars. He should open or contribute to an issue ticket for the elm project. Otherwise, he should just stop using the software if he doesn't like it.
- stefano 10y agoBecause those are terrible ideas when applied to the core functionality of an application.
- darfs 10y agoSpecifing + in a (the! core)library that has to be loaded(over the network)... You can call it highly modular. Or you call it functionless. IMHO isn't that in any balance.
- jack12 10y agoI think it's possible to view the tweet as general bemusement rather than an attack, though I obviously don't know exactly what is intended. The next tweet is "I'm sure there's a perfectly rational explanation for why this happens, but it's logged in an issue on Github, which I cannot read". I mean, it is a bit amusing to get an HTTP error as a result of asking a local interpreter to perform addition. I'd say it's not unusual for modern languages, particularly those integrating package managers, to lazyily download libraries and/or check for updates on the first run of a REPL. But it is a bit odd or unexpected that elm's REPL requires a network connection for every launch and doesn't fall back to a cached copy of the core library packages from a previous run when the connection fails.
- 10y ago