Conversation

๐–†๐–’๐–†๐–—๐–”๐– ๐Ÿ‡จ๐Ÿ‡ฟ๐Ÿ‡ช๐Ÿ‡บ

While learning I was wondering why has become so popular. Go seems just so much better in every aspect.
Maybe it's because people prefer the easiest way of , using dynamic types? OK then, but still - why Python and not , for instance? Lua is nice, lightweight and fast.

4
0
1

@amarok
As with many other things that gained popularity, it was a right balance of exactly right factors that happened to be of sufficiently high quality, and a great deal of luck.

Python is very popular in AI/ML, where the only contenders were R and Fortran - not exactly high bar to pass.

0
0
0

@amarok I think itโ€™s just that Go is much newer, and Python already had a cult by then.

1
0
0

๐–†๐–’๐–†๐–—๐–”๐– ๐Ÿ‡จ๐Ÿ‡ฟ๐Ÿ‡ช๐Ÿ‡บ

@lifts
Good point. I just checked Python's age and it came out 1991 ๐Ÿ˜ฎ Surprise. I thought it was much younger.

0
0
0

Matฤ›j Cepl ๐Ÿ‡ช๐Ÿ‡บ ๐Ÿ‡จ๐Ÿ‡ฟ ๐Ÿ‡บ๐Ÿ‡ฆ

@amarok

Lua *languageโ€™s* first design principle is to keep it minimal and simple. Any effort to make it more comfortable and getting many higher level abstractions is rejected. (Which is fine, Lua is not meant as a universal programming language but more for the embedded engines; also, stack-based language). Anything which would make it more complicated or slower is rejected (e.g., Lua really doesnโ€™t have Unicode).

1
0
0

@amarok And other think coul be, that Python Is interpreted - easier testing parts od code.

2
0
0

๐–†๐–’๐–†๐–—๐–”๐– ๐Ÿ‡จ๐Ÿ‡ฟ๐Ÿ‡ช๐Ÿ‡บ

@mkyral
Go can compile and run in one step without saving an executable file on disk, and it's pretty fast.
For quick prototyping interpreted langs can be a better choice, of course. What I miss in Go is an interactive shell, even Java has one.

0
0
0

๐–†๐–’๐–†๐–—๐–”๐– ๐Ÿ‡จ๐Ÿ‡ฟ๐Ÿ‡ช๐Ÿ‡บ

@mcepl
True. But the question is whether you really need utf-16, because utf-8 is pretty straightforward to support even in non-Unicode aware langs like Lua or C. Also there are libraries which add advanced support if needed. Lua is presented as a language for embedded systems but I think that's irritating, Lua is more versatile. Today Python scripts are everywhere and I don't like this approach, you have to install whole Python ecosystem just to get a program run which is not even written in P.

1
0
0

Matฤ›j Cepl ๐Ÿ‡ช๐Ÿ‡บ ๐Ÿ‡จ๐Ÿ‡ฟ ๐Ÿ‡บ๐Ÿ‡ฆ

Edited 11 months ago

@amarok What I meant is that you really donโ€™t have (and I donโ€™t know about any third party library doing it well) the support for Unicode strings in whatever binary encoding. See https://lists.sr.ht/~martanne/devel/%3CCYUITPKBDDJC.22NET5BO34MVK@cepl.eu%3E and subsequent threads for discussion of upper-/lower-casing of Unicode strings. I know about `utf8` library, but it really doesnโ€™t contain almost anything useful.

0
0
0
@mkyral @amarok Python is way older than Go. It is also targetted at very different usecases.
1
0
1

๐–†๐–’๐–†๐–—๐–”๐– ๐Ÿ‡จ๐Ÿ‡ฟ๐Ÿ‡ช๐Ÿ‡บ

@pavel
But it somehow missed the original target (quick prototyping and supporting other programs by Python's scripting capabilities) ๐Ÿ˜ฌ Which is a good thing, meaning that all general purpose languages may be used in all kind of fields.
Go is also a general programming language, just saying ๐Ÿ˜ฌ
@mkyral

1
0
0
@amarok @mkyral I believe Python does quite well in those areas. It does well in other areas, too...
0
0
1