News for hackers. Stuff that matters.
Re:Nim – Python-like statically-typed compiled language by zelly on Sunday August 16, 2020 @01:32PM (#24179562)
In the case of languages the chicken and the egg problem has been solved. Looking at every major PL with widespread adoption, the common theme is that was chosen by a big company (the chicken) as a natively-supported language for their platform. See: Obj-C and Swift with Apple, C# and C++ with Microsoft, Java with Sun, C with GNU, JS with Netscape, etc. If you build an ecosystem, they will come. Languages that rely on a community to build an ecosystem just for the sake of using the language itself are very few and far between.
Re:Nim – Python-like statically-typed compiled language by formerly_proven on Sunday August 16, 2020 @01:49PM (#24179681)
C++ has also been the lingua franca of media and game development since the mid-to-late 90s.
Re:Nim – Python-like statically-typed compiled language by CoolGuySteve on Sunday August 16, 2020 @01:51PM (#24179703)
SGI's STL implementation and later EA STL were game changers for C++ imo, they really kicked off "modern C++" as we knew it.
Re:Nim – Python-like statically-typed compiled language by jlokier on Sunday August 16, 2020 @07:46PM (#24182384)
C++ was used in game development long before the STL was widely used or even reliably supported by compilers.

The object-oriented and high performance features of C++ make it a good match for games. Seems to me this makes Rust a fairly natural choice for high-performance games in future.

Re:Nim – Python-like statically-typed compiled language by zelly on Sunday August 16, 2020 @11:23PM (#24183555)
Rust by design tries to discourage you from using object-oriented patterns. Not saying you can't write games with it, but it'd look more similar to C than C++.
Re:Nim – Python-like statically-typed compiled language by jlokier on Monday August 17, 2020 @02:24PM (#24190158)
Interesting, I hadn't thought of Rust as discouraging object orientation particularly. But then, I think of the Linux kernel as object-oriented C in places.

If you look at Unity, although the games are written in C#, there is a heavy emphasis on mixins for giving functionality to game objects, rather than inheritance or interfaces.

Between mixins and the ECS pattern, I think Rust's trait-oriented style looks aligned with that trend.

Re:Nim – Python-like statically-typed compiled language by aserafini on Sunday August 16, 2020 @01:37PM (#24179600)
But interestingly that was not the case for Python which is definitely in the top 5 most popular languages today. I wonder how/why Python accomplished this without any corporate backer?
Re:Nim – Python-like statically-typed compiled language by formerly_proven on Sunday August 16, 2020 @01:50PM (#24179698)
Python always has had a few really strong killer apps. In the past stuff like Zope (GvR himself worked for a few years on this, and it's still around), and more recently things like Django, numpy, scipy, matplotlib, PyTorch or open scientific computing in general.

Python seems like a very popular choice when the time comes to replace bash or perl scripting from the 90s. Oodles of internal tooling and OS tools in the Linux space use it.

Re:Nim – Python-like statically-typed compiled language by gtt on Monday August 17, 2020 @06:41AM (#24185906)
I don't understand why people needed or used Zope. Can someone explain?
Re:Nim – Python-like statically-typed compiled language by CoolGuySteve on Sunday August 16, 2020 @01:49PM (#24179680)
Python was one of only 3 languages allowed at Google (along with Java and C++) back in the 2000s.
Re:Nim – Python-like statically-typed compiled language by zelly on Sunday August 16, 2020 @02:02PM (#24179785)
That's one exception I had in mind. It was a no-name language before Google adopted it in the 2000s, but that was internal and couldn't have had effects except the downstream effects on general sentiment around Python. Python was just so nice of a language compared to its competitors that the community created an ecosystem. That's very hard to replicate. A lot of these new languages I'm seeing are just incremental improvements.
Re:Nim – Python-like statically-typed compiled language by pjmlp on Sunday August 16, 2020 @02:41PM (#24180088)
That is what people tend think, the corporate backers were all the Guido employers, and back in the old days (Python 1.6 and such), Zope was the big reason to use Python.
Re:Nim – Python-like statically-typed compiled language by dnautics on Sunday August 16, 2020 @01:39PM (#24179616)
Schools. There was ba major push to teach python in high schools and colleges.
Re:Nim – Python-like statically-typed compiled language by tyingq on Sunday August 16, 2020 @01:41PM (#24179630)
Python, TCL, PHP, Perl, Ruby, Lua, and more. So it happens, just not recently.
Re:Nim – Python-like statically-typed compiled language by pjmlp on Sunday August 16, 2020 @02:47PM (#24180134)
Python, all the Guido employers, Zope was big during the early 2000's.

TCL designed at Sun, pushed on the Web early days with application servers like AOL Server and Revit (or something similar have forgotten the name).

Perl was introduced in UNIX since the early days and was the tool to use when sed and awk scripts got too complicated.

Ruby was made famous thanks to Rails, and gets very little use outside Rails.

Lua, used as scripting language in a couple of game engines, made famous via World of Warcraft.

Re:Nim – Python-like statically-typed compiled language by tyingq on Sunday August 16, 2020 @02:55PM (#24180200)
TCL was pretty well established before Ousterhout went to Sun.
Re:Nim – Python-like statically-typed compiled language by didibus on Sunday August 16, 2020 @01:47PM (#24179667)
You could argue it was chosen by Linux, since it was bundled in most distros.
Re:Nim – Python-like statically-typed compiled language by petra on Sunday August 16, 2020 @05:12PM (#24181365)
Was there any language that solved the chicken and egg problem using a nice ffi ?
Re:Nim – Python-like statically-typed compiled language by pas on Sunday August 16, 2020 @06:36PM (#24181959)
Go, Rust, Python, Ruby?
Re:Nim – Python-like statically-typed compiled language by dnautics on Sunday August 16, 2020 @01:38PM (#24179607)
Lisp, ruby, PHP (unless... WordPress? I'm pretty sure Facebook is "tail end" of php)...
Re:Nim – Python-like statically-typed compiled language by noobermin on Sunday August 16, 2020 @03:13PM (#24180357)
>C with GNU

Instead of this pondering and retroactive application of intuition in one's head onto history it would help to learn history. (Hint, what is GNU's name)