Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pansa2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
571.
▲
by
pansa2
5y ago
Bit order is little-endian - the lowest-numbered bit is least significant.
572.
▲
by
pansa2
5y ago
> Also, is the screen still 720p? 7-inch instead of 6.2-inch, but still 1280x720. https://www.nintendo.com/switch/tech-specs/
573.
▲
by
pansa2
5y ago
Thanks. I posted this submission before that one, and it looks like both were resubmitted via the second-chance pool but in reverse order.
574.
▲
Towards Richer Colors on the Web
(darker.ink)
16 points
by
pansa2
5y ago
|
2 comments
575.
▲
by
pansa2
5y ago
Facebook does exactly the same.
576.
▲
by
pansa2
5y ago
Using WebAssembly currently means programming in C, C++, Rust, or maybe Go. Despite its flaws, many people prefer programming in JavaScript over any of those lower-level languages.
577.
▲
by
pansa2
5y ago
> I think JavaScript is probably the nicest of the big dynamic scripting languages (Perl, PHP, Python, Ruby) to work with. As an experienced Python programmer learning JavaScript, this isn’t true for me yet but I hope it becomes true
578.
▲
by
pansa2
5y ago
> Having the bigger OS number is really unimportant I can tell that you don’t work in marketing.
579.
▲
by
pansa2
5y ago
Functions like `atoi` parse strings into integers, but will happily accept “ 10blah” and return 10. In my experience it’s best to validate that the string is well-formed (e.g. contains only digits) before passing it to one of those function
580.
▲
by
pansa2
5y ago
This relates to one of the reasons I gave up studying only mathematics and became an engineer. I was far more impressed by the achievement of heavier-than-air flight in 1903 than by the mathematicians who proved that it was theoretically po
581.
▲
by
pansa2
5y ago
> The commit was about 10 years old, and it replaced every tab with 4 spaces. Reminds me of a project I worked on a while back - whenever you looked at the git history of a file, if you went back far enough you’d hit a dead end at the
582.
▲
by
pansa2
5y ago
“Parse, don’t [just] validate”. Say I have a string that’s supposed to represent an integer. To me, “Validate” means using a regex to ensure it contains only digits (raising an error if it doesn’t) but then continuing to work with it as a s
583.
▲
by
pansa2
5y ago
Like regular Lua, Pocketlang uses a bytecode interpreter. AFAIK LuaJIT is still the only small language implementation that provides a JIT compiler and not just an interpreter. I don’t know why that is - maybe there just isn’t much of a nic
584.
▲
by
pansa2
5y ago
> You could limit NPC's ai to 50 instructions or so The problem with this approach is that limiting the number of instructions doesn’t necessarily limit the amount of time taken. Any single VM instruction could be a call into a C
585.
▲
by
pansa2
5y ago
> Pocketlang is a [...] functional language written in C. What features make this a functional language?
586.
▲
by
pansa2
5y ago
> [PyInstaller] includes all dynamic libraries that the Python interpreter has on your machine. Yes - and last time I used it, it created either a large folder or a compressed archive containing all of those libraries. Only the latter
587.
▲
by
pansa2
5y ago
> I just wish Python had parallelism. Would support for parallelism have benefits other than increasing speed? If not, I'd rather see an increase in Python's single-threaded performance - which is what Guido and his colleague
588.
▲
by
pansa2
5y ago
Is Nuitka able to create self-contained binaries that can be distributed as a single file? Or do they still have external dependencies such as the Python runtime? I’ve chosen Go rather than Python for a few small projects recently. Not for
589.
▲
by
pansa2
5y ago
VMware Fusion is the same - version 12, released in September 2020, only supports Catalina and Big Sur. https://kb.vmware.com/s/article/2088571
590.
▲
by
pansa2
5y ago
> 6s was discontinued September 12, 2018 Looks like they were still being manufactured and sold in some regions until at least August 2019. https://arstechnica.com/gadgets/2019/10/apples-new-repair-pr...
591.
▲
by
pansa2
5y ago
While Apple are still supporting six-year-old iPhones, it's disappointing that they're dropping support for six-year-old Macs.
592.
▲
by
pansa2
5y ago
> There’s also two type checker implementations. Four: Mypy, Pyre, Pyright and Pytype.
593.
▲
by
pansa2
5y ago
> A small, lean stdlib If you take that approach, where libraries must rely on third-party packages even for fundamental operations, how do you avoid the JavaScript/Rust situation where every application requires a huge number of
594.
▲
by
pansa2
5y ago
The original plan was for Python 2 support to end in 2015.
595.
▲
by
pansa2
5y ago
> How do you prevent interleaving of different threads then? The GIL. > Why? Python 3 broke a whole lot of applications and libraries. Sorry, I mean it must remain that way if it is to maintain compatibility. We’re assuming that
596.
▲
by
pansa2
5y ago
Python’s separation between ints and floats is quite weak, so it didn’t make sense for `3 / 2` to give a different result from `3.0 / 2` (1 and 1.5 respectively). Python 3 changed the division operator to return 1.5 in both cases.
597.
▲
by
pansa2
5y ago
> the breaking changes of Python 3.x have decreased the psychological barrier for doing that Perhaps the 2-to-3 transition caused people who dislike breaking changes to move to other languages, leaving only those who are pro-breakage i
598.
▲
by
pansa2
5y ago
IIRC it included a JIT compiler, which was fast enough to offset the overhead of fine-granularity locking.
599.
▲
by
pansa2
5y ago
See also Windows 10, so named because they didn’t want to have a smaller version number than macOS X. What will they do now Big Sur is macOS 11?
600.
▲
by
pansa2
5y ago
Is Nim particularly similar to Python? More than Go, which Guido recently described as being the new language that’s most Pythonic? https://www.youtube.com/watch?v=aYbNh3NS7jA&t=1472s
More ›