Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pansa2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
931.
▲
by
pansa2
6y ago
Python didn’t have a single big player like Rails to “lead the charge”. Instead, its ecosystem is made up of many smaller libraries. Because it’s not possible to run Python 2 and Python 3 code together, none of those libraries could upgrade
932.
▲
by
pansa2
6y ago
“The plan is not to do 4.0 until 2.7 is barely a faint memory, and then we will consider how to handle the transition very carefully.” - Guido van Rossum https://mobile.twitter.com/gvanrossum/status/128544327896012
933.
▲
by
pansa2
6y ago
Unless things change now that there’s a “steering council” in charge rather than a BDFL, probably never. Instead, I expect the language to continue along the path of FOMO-driven accumulation of features (and complexity), while still not add
934.
▲
by
pansa2
6y ago
Perhaps they were talking about the explicit `u` prefix for Unicode strings? This was present in 2.7 but missing from 3.x until 3.3 [0]. [0] https://www.python.org/dev/peps/pep-0414/
935.
▲
by
pansa2
6y ago
Project Loom: https://wiki.openjdk.java.net/display/loom/Main
936.
▲
by
pansa2
6y ago
> Greenlets are similar to coroutines [...] the async ecosystem in Python is fractured in two big groups. Async in software development in general is fractured in two big groups. On the one hand languages like C#, C++ and Dart support
937.
▲
by
pansa2
6y ago
> CPython is [...] one of the Python implementations, alongside with PyPy, Jython, IronPython and many others. What others are there? I’m only aware of MicroPython, but it only implements a subset of the language. What’s more, aren’t b
938.
▲
by
pansa2
6y ago
> Lua will never be more popular without a proper standard library. How would you add a large standard library without compromising Lua’s main purpose - to be a lightweight, embeddable language?
939.
▲
by
pansa2
6y ago
Did `undef` actually make it into 5.4? I thought it was removed during the beta period.
940.
▲
by
pansa2
6y ago
> I believe [Lua is] also much easier to secure / sandbox [than Python] Yes. C code that embeds the Lua VM has total control over which functions are exposed to the Lua code. It's possible to create a VM that, for example, ha
941.
▲
by
pansa2
6y ago
> Promises are so easy to understand. I still don't understand promises in JavaScript. I got my head around the convoluted constructor (a function whose argument is a function whose arguments are two functions), but I can't m
942.
▲
by
pansa2
6y ago
> Do you learn and use all of any language you use? yes for Python Have you really used all of these Python features (from https://twitter.com/raymondh/status/1280988785841278976 )? __class_getitem__, __init_s
943.
▲
by
pansa2
6y ago
It seems to me that for many developers, all they want from a language is more and more features. I’m grateful for languages like Go and Lua that try to buck this trend.
944.
▲
by
pansa2
6y ago
That’s your choice of C++ subset, but the problem with these huge languages is that everyone chooses a different subset to use. Sticking to plain C has the advantage of probably being the subset of C++ (I know, it’s not technically a su
945.
▲
by
pansa2
6y ago
> One example is regular files, which cannot be made non-blocking. AFAIK this is true on Linux but it’s not true on Windows, which allows “overlapped I/O” on files. Not sure about other operating systems.
946.
▲
by
pansa2
6y ago
> Calling the stackful coroutine model as offered by Go superior to stackless coroutines ("async/await") is highly controversial. Yes. Preference among programmers for one model or the other appears close to 50/50.
947.
▲
by
pansa2
6y ago
> Goroutines don’t switch at arbitrary points That was only ever an implementation detail, though - you always had to program as though goroutines were preemptive. And sure enough, from Go 1.14, “Goroutines are now asynchronously preem
948.
▲
by
pansa2
6y ago
> I really don't understand why async and await is even a thing anymore Programming with threads is hard because they can context-switch at arbitrary points. Goroutines are nothing more than (lightweight) threads. Stackful coroutine
949.
▲
Ruby Creator Matz on the Challenges of Updating a Programming Language
(thenewstack.io)
4 points
by
pansa2
6y ago
|
0 comments
950.
▲
by
pansa2
6y ago
Nim does too.
951.
▲
by
pansa2
6y ago
> I can't help but contrast this with the upgrade from Ruby 1.8 to 1.9. One difference is that upgrading Ruby from 1.8 to 1.9 brought a significant performance increase, whereas going from Python 2.x to early 3.x, performance actu
952.
▲
by
pansa2
6y ago
> is the same size What size, exactly? Is it a really big interchange, or a really small city?
953.
▲
by
pansa2
6y ago
> Do you guys think there is in theory, the best programming language On the one hand, many languages seem to be adopting features from one another. Perhaps they will converge towards a single language? However, I believe whatever they
954.
▲
by
pansa2
6y ago
> How would a trace-based JIT be easier to implement? When compiling at method-granularity, with incomplete information about types, complex features are required e.g. On-Stack Replacement (if the current method becomes "hot",
955.
▲
by
pansa2
6y ago
Any ideas why they’ve moved from a method-based JIT to tracing? AFAIK tracing JITs are generally inferior to method-based ones, which is why none of the major JavaScript engines use tracing. Their only advantage seems to be (relative) simpl
956.
▲
by
pansa2
6y ago
> since Electron brings XSS to the desktop, it is a hackers paradise. Just curious - what makes XSS on the desktop different from other kinds of RCE vulnerability?
957.
▲
by
pansa2
6y ago
> `a = append(a[:i], a[i+1:]...)` Not only is this ugly and unintuitive (“what function do I call to delete an element?”; “append”), according to the linked page it can also cause a memory leak?!
958.
▲
by
pansa2
6y ago
> Golang is like Python [...] Fast to implement, easy to read I disagree. Python is often described as "executable pseudocode" - for example, to delete the `i`th element from a list `a` you use `del a[i]`. In Go, it's mu
959.
▲
by
pansa2
6y ago
> I think it's inevitable for WASM to replace JS eventually. Do you think front-end developers will start writing C/C++/Rust instead of JavaScript? Or do we need other languages that can compile to WASM before it can repla
960.
▲
by
pansa2
6y ago
> C++ is in a decent state as well I’d still choose Go or Rust over C++, though, because they’re memory-safe. This recent discussion shows that’s still important in the context of WebAssembly: https://news.ycombinator.com/
More ›