Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
PeCaN
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
151.
▲
by
PeCaN
8y ago
While FUSE doesn't work directly, there are userspace filesystem implementations for Windows. Dokany¹ even implements most of the FUSE API. 1. https://github.com/dokan-dev/dokany
152.
▲
by
PeCaN
8y ago
Sadly it's dead now. In a cruel twist of fate, Intel killed it off shortly before we found out about all the speculative execution attacks and found that everything else is horrifically vulnerable.
153.
▲
by
PeCaN
8y ago
Itanium does this automatically. You declare what registers you're using in the the function prologue and it handles popping/pushing/renaming. No register window exceptions too.
154.
▲
by
PeCaN
8y ago
Ah, duh, you're right. I forgot $() is bash syntax and not the Ruby syntax for running an external command. Thanks, and yikes.
155.
▲
by
PeCaN
8y ago
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Ignoring the obvious stupidity here, why does it invoke Ruby only to invoke
156.
▲
by
PeCaN
8y ago
Somehow people in the ESlint thread were defending the fact that NPM seems totally uninterested in this. Yes, it doesn't solve all the problems and yes you still have to determine who to trust, but at least it makes it POSSIBLE to tr
157.
▲
by
PeCaN
8y ago
Hence why NPM exists in the first place.
158.
▲
by
PeCaN
8y ago
In case anyone is wondering about why this project puts so much importance on things being inlineable, GPUs often don't support function calls or have an extremely shallow return stack. In this way it reminds me of http://fu
159.
▲
by
PeCaN
8y ago
Frankly, to me the specifics of the syntax are not nearly as important as what the language does. This: > Abstraction by heap allocation is a dead end. It works moderately well on the current generation of computers where CPU is still th
160.
▲
by
PeCaN
8y ago
You make good points about package signing. It's not a trivial problem. Fortunately it's a solved one. There are package managers (pacman, nuget, rpm, etc) that do this. Yes, maintaining a web of trust is required. Nobody said oth
161.
▲
by
PeCaN
8y ago
>people who are doing their best to solve genuinely hard problems at zero charge to the community NPM is not doing their best. They actively reject ideas like package signing. They allow running arbitrary unsandboxed code when installin
162.
▲
by
PeCaN
8y ago
No, that's a fine idea and would've prevented this problem. The build reflecting the repo is a very sane thing to do. Unfortunately NPM is run and used by morons so that'll not happen.
163.
▲
by
PeCaN
8y ago
thanks for the financial insight stay savvy hacker news!
164.
▲
by
PeCaN
8y ago
I mean, in the strict formulation of "transistor counts doubling every 2 years" it's been dead since like 2015 if not earlier. That said, the "death of Moore's law" is kind of this memetic doomsday device that
165.
▲
by
PeCaN
8y ago
It's pretty clear that Microsoft really took a close look at the specs when developing Edge, which is really nice. It also has the benefit of being the newest of the major engines.
166.
▲
by
PeCaN
8y ago
learn Haskell or OCaml or something alternatively just write more code because tbh that sounds like you just started programming
167.
▲
by
PeCaN
8y ago
Zig is nice. It's the type of programming language I'd write if I didn't want to do anything novel and just wanted to make something a little better than what's out there currently. It's not the future, but it'
168.
▲
by
PeCaN
8y ago
I figured the use-case here was MADV_WILLNEED, which is what PrefetchVirtualMemory is for. VirtualAlloc flags would be for things like reserving virtual pages without committing them. There's no single API on Windows that does the myri
169.
▲
by
PeCaN
8y ago
Windows 8 and later has PrefetchVirtualMemory[1]. Before that your best bet is to get a little hacky and try reading the file asynchronously to get it in the cache (Windows caches files pretty aggressively, so this more or less works). [1]
170.
▲
by
PeCaN
8y ago
It's still supported by OpenBSD and QNX as well. It's actually not really dead and is moderately popular in embedded systems. Also, the patents are expiring and the http://j-core.org/ project is working on an open
171.
▲
by
PeCaN
8y ago
Ada can do this conveniently and it can be nice for efficiency and embedded systems (which may not allow heap allocation). It would be nice to see the same feature in Rust.
172.
▲
by
PeCaN
8y ago
Dynamic types are very JIT-able. The first JITs ever were for a dynamically-typed language (Smalltalk).
173.
▲
by
PeCaN
8y ago
Don't know yet. IBM has a CPython-based JIT using OMR but it hasn't been publicly released yet. Ruby OMR is a little more public and from what I can tell gets about a 30%-200% speedup. They basically just stapled OMR onto the regu
174.
▲
by
PeCaN
8y ago
>I got this feeling like I don't have any ownership of my computer and OS. Sure, Windows looks nice and is usable, but it feels like I'm renting my operating system, and honestly, MacOS sort of feels the same. It's an odd
175.
▲
by
PeCaN
8y ago
OMR is amazing. It's essentially IBM's J9 virtual machine, with all the man-decades of effort that went into that. However, if you're writing your own JIT language and you've never written one before, you probably want t
176.
▲
by
PeCaN
8y ago
It's actually extremely easy, particularly if you're familiar with Prolog (the core algorithm is a couple lines in Prolog, so knowing how that works is useful for implementing it in other languages). I suspect the lack of statical
177.
▲
by
PeCaN
8y ago
I was surprised nobody mentioned mruby in this thread until now. It's tiny, super easy to embed, and Ruby is a fun language. Also, mruby has the benefit over most of these other languages of having had a recent thorough security audit[
178.
▲
by
PeCaN
8y ago
Always cool to see ATS in the wild. Higher-order functions on an 8-bit CPU makes me happy. :D
179.
▲
by
PeCaN
8y ago
I hate function call syntax with parens. It makes code much more difficult to read and, if it supports calling functions, calling functions with args is harder than it should be.
180.
▲
BOLT: A Facebook tool to optimize binaries
(github.com)
1 points
by
PeCaN
8y ago
|
0 comments
More ›