Recent submissions

Comment · 5 years ago
The difference is that software compilation is a fairly local optimization process - allowing you to change/inline one bit of generated code without significantly affecting the performance of the rest of the generated code - address space is cheap. On the other hand, especially when the fpga approaches capacity, one change could cause a significant portion of the design to have to be rerouted as space is limited causing significant performance differences or not meeting the timing requirements anymore.
Comment · 5 years ago
https://www.interactivebrokers.com/en/index.php?f=759

You'd open up a trading account, deposit funds from one country to it (generally free in EU/UK, can be done with a simple bank transfer, though can take 1-3 business days). Rather than the common use case of a brokerage account to buy stocks/invest, you place an order into their IdealPro order book they run to buy the currency you want (might have to jump through 2 trades, they don't run every single pair). Generally this is tailored at larger investors, so anything under $25k is subject to some additional fees due to being a small size (https://ibkr.info/node/1459), but still significantly less than the 0.35% TransferWise charges. The costs for you are commission (<0.2bps), potentially small size fee (1-2 bps), and crossing the bid/ask spread, which is ~0 for currencies). When that order has been filled you now have the desired currency in your account and you can transfer it back out (potentially to a different country or different account).

Comment · 5 years ago
I'm not sure whether their fees are really that low. For transfers between your own accounts, for anything over very small amounts, I found that their 0.35% variable fee is pretty large compared to adding the funds to a brokerage account and then doing the conversion there (ie. IB charges 0.002% on currency trades, with a min of $2), and transferring back out into the desired currency.
Comment · 5 years ago
Your gain in delta (due to the stock moving) will be offset by your loss in vega (due to the volatility coming off after the impending crash). Option fair value is a function of both underlying price and volatility, which is currently at unprecedentedly high values.
Comment · 6 years ago
It does load it - mmap doesn't copy the file content into a buffer, it merely allows you to operate on a file as if it were in memory. Memory reads correspond to file read operations.
Comment · 6 years ago
Comment · 6 years ago
If you would write a basic scheduler, at some point you'd have to await the userspace code but you wouldn't have any way to force it to stop running. If the userspace code would enter an infinite loop it would hold the kernel thread forever. Within a constrained environment, eg. the kernel itself (and even that's sufficiently complex with loadable drivers that you might end up with bad interactions) I could see some use for async await, but you'd still need to be able to preempt untrusted code.
Comment · 6 years ago
As described in the blog post, the rust compiler generates a state machine for every async function and generates the appropriate poll methods for the state transition. This is fundamentally at odds with the preemption, which would then have to indroduce new intermediate states into the diagram which it won't be able to do at runtime.
Comment · 6 years ago
Intel tried that with Itanium. It didn't go well.
Comment · 6 years ago
The issue was that there wasn't a cheap riscv board that supported the privileged section of the ISA (so you can run an OS on it). This, being a microcontroller, doesn't either.
Comment · 6 years ago
Comment · 7 years ago
Unfortunately true exponential growth of a physical system cannot exist - it'll always be some sort of logistic model that looks exponential near x=0.
Comment · 7 years ago
How would electromagnetism work in a world without a cross product?
Comment · 7 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton