Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pansa2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
451.
▲
by
pansa2
3y ago
But Windows is still happy to run downloaded executables that aren’t signed, isn’t it? OTOH it sounds like macOS requires everything to be signed.
452.
▲
by
pansa2
3y ago
Second-Chance Pool: https://news.ycombinator.com/item?id=26998308
453.
▲
by
pansa2
3y ago
> Neither Lua nor LuaJIT are sandboxes. Maybe we have different definitions of “sandbox”, but I thought the Lua interpreter was one? That is, isn’t it safe (or can be made safe) to embed the interpreter within an application and use it
454.
▲
by
pansa2
3y ago
I’m sure all the modern JavaScript JITs would beat LuaJIT for raw performance. JS JITs were already faster when I compared them several years ago and have only improved since - whereas LuaJIT has almost been standing still for a decade.
455.
▲
by
pansa2
3y ago
Unladen Swallow was massively over-hyped. It was talked about as though Google had a large team writing “V8 for Python”, but IIRC it was really just an internship project.
456.
▲
by
pansa2
3y ago
When Go first came out, it was better than C# in terms of support for concurrency, stand-alone binaries, and cross-platform. It seems that C# has done a lot of catching up since then, though.
457.
▲
by
pansa2
3y ago
> on the spectrum of PLs it's got more support than most Go definitely has much more funding and developer hours put into it than open-development languages like Python - that’s got to be a good thing for the language. On the othe
458.
▲
by
pansa2
3y ago
2MB for a standalone “Hello World” binary in C# is a similar size to one in Go. Do both languages produce similar-sized binaries for larger projects as well? If so, would C# be a good choice for writing cross-platform command-line applicati
459.
▲
by
pansa2
3y ago
Tell me you’ve not watched the talk...
460.
▲
by
pansa2
3y ago
Yeah, I’m really hoping TOTK isn’t half BOTW and half Minecraft.
461.
▲
by
pansa2
3y ago
Agreed. The change (especially to for-range) is a good one, but IMO they shouldn’t be breaking the Go 1.x Compatibility Promise in a Go 1.x release.
462.
▲
by
pansa2
4y ago
Web stuff probably makes ML devs feel the same way. ML is just a different field, using a different set of technologies from those you’re familiar with.
463.
▲
by
pansa2
4y ago
I believe the Ruby designers have refused to add syntax for type hints, so they need to either be in comments on separate lines from the code itself or even in a separate file. They are therefore less ergonomic to use - but the increased se
464.
▲
by
pansa2
4y ago
> I enjoy using static types: 18% (+/- 8) That number seems to be from 2013. I imagine it would be much higher today - 10 years ago dynamic typing was at the peak of its hype cycle, and right now it seems to be in the Trough of
465.
▲
by
pansa2
4y ago
Australia: 50/20 Mbps @ 79AUD (~53 USD) per month. My speeds are actually lower than in 2019, when I was on 100/40 for the same price - but that was with a 500 GB per month data cap.
466.
▲
by
pansa2
4y ago
I did the same thing, recalling "There are Only Four Billion Floats–So Test Them All!" [0]. Except I used Python, so it took over 10 minutes: >>> import struct >>> count = 0 >>> for i in ra
467.
▲
by
pansa2
4y ago
See https://github.com/satwikkansal/wtfpython "Mutating the immutable" is my personal favourite - the second line of code fails with an exception despite having already succeeded: >>> t = ([1,
468.
▲
by
pansa2
4y ago
It’s a layoff. The title initially said “firing 17%”.
469.
▲
by
pansa2
4y ago
My understanding is that Python is used by millions of people to write programs measured in tens of lines, and by tens of large companies writing millions of lines. Many in the first group are happy with dynamic typing. Those in the second
470.
▲
by
pansa2
4y ago
Are a lot of things still sold as “454g / 1lb” or “568ml / 1 pint” (as I recall from a decade ago)? In most metric countries those would just be “500g” and “500ml”.
471.
▲
by
pansa2
4y ago
Yeah - `__add__` then `__radd__` isn't exactly double dispatch, but it's close. (There are corner cases involving inheritance where double-dispatch will work correctly but Python's approach will fail to pick the most-specific
472.
▲
by
pansa2
4y ago
I'm not sure I understand. Could you give a concrete example where only one version uses mutation?
473.
▲
by
pansa2
4y ago
Your `if-else` is more complex than the original that just uses `if`.
474.
▲
by
pansa2
4y ago
> Making anything other than false and none falsy was a mistake Yes. That's how you end up with messes like this one: https://lwn.net/Articles/590299/
475.
▲
by
pansa2
4y ago
The `?` operators also fit better within TypeScript's overall syntax, whereas Python traditionally prefers English words over punctuation characters. In a language which considers `and` and `or` more readable than `&&` and `||`
476.
▲
by
pansa2
4y ago
The examples in that PEP range from pointless (`if hi is None: hi = len(a)` => `hi ??= len(a)`) to cryptic (`libpaths = libpaths?.split(":") ?? []`). Remember the Zen of Python: “Readability counts”.
477.
▲
by
pansa2
4y ago
Simpler than Python? Definitely Go. Probably Java and JavaScript. Maybe even C, although the whole "undefined behaviour" thing is a different kind of complexity. I'd consider the complexity of Python comparable to that of C
478.
▲
by
pansa2
4y ago
`a += b` sometimes does the same thing as `a = a + b`: >>> a = b = (1, 2) >>> a = b = (1, 2) >>> a += (3,) >>> a = a + (3,) >>> print(a, b) >>>
479.
▲
by
pansa2
4y ago
It’s quite clear from the design of Python, both of recent features and of fundamentals like `+=`, that its designers never got that memo either. I’m baffled as to how it retains its reputation of being a simple language.
480.
▲
by
pansa2
4y ago
`bit_count` is a terrible name for a function that returns the number of one-bits. Zero-bits are bits too!
More ›