5 ms·
Yeah and even worse they disagree about type errors! We really need a modern Python alternative. I don't know of any that don't give up the REPL / single file
by IshKebab 6y ago
Yeah and even worse they disagree about type errors!
We really need a modern Python alternative. I don't know of any that don't give up the REPL / single file script features which are pretty huge advantages of Python to be honest.
- iudqnolq 6y agoIt's radically different, but the language where I've had the most pleasant repl-driven experience is Elixir. Because of how it's error handling works it's even sane to debug with a repl into live production in some cases.
- fish45 6y agoI've started learning Elixir over the week and I can't see myself using Python for scripting again. They're very different languages but th experience feels similar, except I vastly prefer Elixir
- iudqnolq 6y agoI wouldn't expect elixir to be good at scripting. What sort of libraries do you use?
- Sohcahtoa82 6y agoNode.js has a REPL, and there's nothing stopping you from putting your entire project into a single file.
- IshKebab 6y agoTrue, but to use JavaScript sensibly you really need to use Typescript and ESLint (to ban the crazy old features like `var` and `==`). But I do agree Typescript is one of the best alternatives today if you can stomach `tsconfig.json` `eslintrc` and `node_modules`.
- pjmlp 6y agoAll ML derived languages, Lisp based languages have REPL, you can put everything on one file if you feel like it, and they compile to native code. Then there is Julia as well.
- onerandompotato 6y agoWouldn't Julia be that language? Its fast, supports static typing, and is built from the ground up for machine learning/ data science. It also has a built in REPL.
- N1H1L 6y agoJulia is that language now. Previously I had sunk cost fallacy regarding Python, but now we are building a brand new application from scratch, and we chose Julia.
- IshKebab 6y agoJulia is nothing like Python though, and it has other flaws like 1-based indexing and huge delays loading packages as it compiles them.
- DickieStarshine 6y agoHow is it nothing like Python? 1-based indexing is definitely not a flaw. And version 1.6 massively decreased package import and precompilation time.
- IshKebab 6y ago> 1-based indexing is definitely not a flaw. It really is. We've known it for literally decades: https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/E...
- kescobo 6y agoIt really depends on what you do - sometimes offsets are better, sometimes an index is better. If you really want 0-based indexing, you can have it! https://github.com/JuliaArrays/OffsetArrays.jl https://github.com/JuliaArrays/OffsetArrays.jl My own preference is random indexing, it's so much more exciting to be surprised https://www.juliabloggers.com/random-based-indexing-for-arrays/ https://www.juliabloggers.com/random-based-indexing-for-arra...
- zelphirkalt 6y agoGNU Guile can do that easily, as probably many other languages. The ecosystem is what makes people stick to Python, especially in areas like data science. Ecosystems are generally difficult to compete with, because they rely a lot on mind share. Mind share is a bit like gravity, in that clumps of matter will collect more matter. It takes very motivated people to implement solutions anew in another language, piece by piece getting an ecosystem up to speed. Or a lot of money.
- IshKebab 6y agoGNU Guile is a weird Lisp variant. Nobody is switching from Python to that; be realistic. I do agree in some applications like data science / machine learning you could never get people to switch from Python because everyone uses it. But Python is also used for loads of other things, e.g. hacky build systems, web scraping, etc. that could easily switch.
- zelphirkalt 6y agoIt is actually more precisely a Scheme dialect. I used Racket for some time and then moved to Guile. I do not find it weird, having used other lispy languages before. Guile has many useful tools, like OS level threads and also a fibers library, community projects, a good manual, albeit sometimes lacking a few examples, an active community and mailing list and more. Since it is a Scheme, it adheres to a Scheme standard, which specifies many things already. Then it implements many SRFIs, which also specify many things. I guess, that you name something that goes beyond the Scheme standard and beyond the SRFIs "weird". Could you point out what more specifically you personally find weird about it?
- oblio 6y agoLisp has been around for 60 years. Its adoption is lower than Cobol's or Fortran's and definitely lower than that of modern languages. Despite multiple commercial pushes over the decades. That's what's weird.
- 6y ago
- _Wintermute 6y agonim is the closest I've found. Really hoping it gains more traction.