HNHacker News
TopNewBestAskShowJobs

solarexplorer

509 karma · joined May 29, 2012

submissionscomments
solarexplorer··on Fine, I'll build my own text editor
Here is another one: https://en.wikipedia.org/wiki/Sam_(text_editor)

I have used both editors quite a bit and did like both of them.

solarexplorer··on How many registers does an x86-64 CPU have? (2020)
What you describe sounds counter-intuitive. And the paper you cite seems to suggest an ISA extension to increase the number architected (!) registers. That is something very different. It makes most sense in VLIW architectures, like the ones described in the paper. Architectures like x86 do hardware register renaming (or similar techniques, there are several) to be able to exploit as much instruction level parallelism as possible. That is why I find you claim hard to believe. VLIW architectures traditionally provide huge register sets and make less use of transparent register renaming etc, that part is either explicit in the ISA or completely left to the compiler. These are very different animals than our good old x86...
solarexplorer··on Apple to soon take up to 30% cut from all Patreon creators in iOS app
Have they? Netflix, Spotify, Kindle, ...
solarexplorer··on What is Plan 9?
I don't know. I use a lot of Swift and C++ and while both are OK languages there is an absurd amount of complexity in these languages that doesn't seem to serve any real purpose. Just a lot of foot traps, really. Coming back to Plan9 from that world is a breeze, the simplicity is like a therapy for me. So enjoyable.

If "modern" means complex, I don't think it fits Plan9.

solarexplorer··on East Germany balloon escape
> Propane gas tanks became registered products

I still remember the two gentlemen in their black, faux leather jackets who rang our doorbell and demanded to see our dinghy. (dinghies where registered products too) We showed them our dinghy, they said thank you and left.

Probably someone fled over the Baltic sea to Denmark in a dinghy. So the secret police went from door to door until they found someone who could no longer show it to them...

This was in the late 80s.

solarexplorer··on What happened to Transmeta, the last big dotcom IPO
Yes, I think the conclusion was that it did improve performance on binaries that were not compiled with optimizations, but didn't generate enough gains on optimized binaries to set of the cost of re-compilation.

https://dl.acm.org/doi/10.1145/358438.349303

(this is not about x86 but PA-RISC, but the conclusions would likely be very similar...)

solarexplorer··on OpenAI and Nvidia announce partnership to deploy 10GW of Nvidia systems
That they will invest 10$ in OpenAI for each W of NVIDIA chips that is deployed? EDIT: In steps of 1GW it seems.
solarexplorer··on Pontevedra, Spain declares its entire urban area a "reduced traffic zone"
Yes, gentrification is a thing around here too, but I also lived in the outskirts of the city and you don't need a car there either. They also have all the essentials. The fancy restaurants and theaters are 30min metro/bus away, but otherwise it is fine too. A car is a luxury in those quarters too.

Completely agree that the presence of bikes and scooters on the sidewalk is annoying and dangerous. The city changed the rules a few months ago and now there is a 500€ fine if you use them on the sidewalk. That fixed the problem. They have to use the street or one of the many bike lanes.

No idea how it is in Paris, but there are places where living happily in a city without owning a car is perfectly possible, even if you have small kids.

solarexplorer··on Pontevedra, Spain declares its entire urban area a "reduced traffic zone"
It really depends on the city/quarter where you live. I live in the center of Barcelona and had no problems with two small kids at all. Supermarkets, real farmer's markets, hospitals, pharmacies, schools, etc are all within 10min walking distance. I work from home, but I could walk to the office it I wanted to. I don't have to leave the city at all.

Eventually I gave in and bought a car, not because it was necessary but rather to leave the city on weekends and get closer to nature.

solarexplorer··on Proton joins suit against Apple for practices that harm developers and consumers
> They are the gatekeeper to one thing: their own app store.

They also control the OS and don't allow side-loading or other app stores (without putting absurd obstacles in the way) So in the end they completely control the devices they sell.

solarexplorer··on Containerization is a Swift package for running Linux containers on macOS
Good call, thanks for clarifying!
solarexplorer··on Containerization is a Swift package for running Linux containers on macOS
I would assume that "lightweight" in this case means that they share a single Linux kernel. Or that there is an emulation layer that maps the Linux Kernel API to macOS. In any case, I don't think that they are running a Linux kernel per container.
solarexplorer··on An optimizing compiler doesn't help much with long instruction dependencies
This is not a good article and the content doesn't support the claim in the title. It talks about memory latency and how it negatively affects instruction level parallelism, but doesn't offer any solution or advice, except for offering their own (payed) service...
solarexplorer··on Mario Vargas Llosa has died
Yes, in theory you can pause at any point, but in practice it is not that easy to stop. I remember not hearing the boarding call and losing a flight while reading La fiesta del chivo…
solarexplorer··on Mario Vargas Llosa has died
More details here: https://archive.ph/vabvA (Spanish)
solarexplorer··on German company set for first commercial rocket launch from Europe
There is also the first object in space. But this was arguably no commercial launch.

https://en.wikipedia.org/wiki/MW_18014

solarexplorer··on Block YouTube ads on AppleTV by decrypting and stripping ads from Profobuf
I don't have any numbers, but I think this is still pretty common. On iOS for example Alamofire which is a popular network stack, still offers this as a feature. I think the use case is a bit different for apps and web sites, especially for closed ecosystems like Apple's where reverse engineering is not as easy/straightforward.

https://github.com/Alamofire/Alamofire

solarexplorer··on Alan Turing's 1950 manual for the Mark I electronic computer [pdf]
IIRC it also introduced index based addressing. Before that, people just wrote self modifying code to index arrays...
solarexplorer··on PyScript: An open source platform for Python in the browser
Maybe some kind of snapshot feature, where you can just load an snapshot of the already initialized state?
solarexplorer··on Meta LLM Compiler: neural optimizer and disassembler
If I understand correctly, the AI is only choosing the optimization passes and their relative order. Each individual optimization step would still be designed and verified manually, and maybe even proven to be correct mathematically.
solarexplorer··on Simulating Slices of iOS Apps
Very nice! Thanks for sharing! Getting to the point where you can run other people’s code is a great achievement!

I have one question: Did you really implement this in Python? Why not C++ or Rust?

solarexplorer··on C and C++ prioritize performance over correctness
MIPS for example has this. It has `addu` for normal integer addition that does not trap and `add` if you want to trap on overflows.
solarexplorer··on Spain launches free train tickets for short and medium journeys from Sept to Dec
IIRC you don‘t have to do 16 trips in four months. If do fewer trips, you have to pay 10€ once (or 20€ for the mid range trips). That is still a considerable discount.
solarexplorer··on Graviton 3: First Impressions
We do have these architectures already in the embedded space and as DSPs. I suppose, they would be interesting for supercomputers as well. But for general purpose CPUs they would be a difficult sell. Since the memory size and latency would be part of the ISA, binaries could not run unchanged on different memory configurations, you would need another software layer to take care of that. Context switching and memory mapping would also need some rethinking. Of course, all of this can be solved, but it would make adoption more difficult.

And last not least, unknown memory latency is not the only source of problems, branch (mis)predictions are another. And they have the same remedies as cache misses: multithreading and speculative execution.

So if you wanted to get rid of branch prediction as well, you could come up with something like the CRAY-1.

solarexplorer··on Addressing Criticism of RISC-V Microprocessors
In the same section the part about the SiFive optimization is also misleading. The goal of the optimization is obviously to avoid interrupting the instruction fetch. But he makes it sound like the goal was to reduce instruction count by fusing two instructions to get a single monster op with five (!) register operands. That just doesn't make sense.
solarexplorer··on The first RISC-V portable computer is now available
I like to remap Caps Lock to Control to get a similar layout as the old Sun keyboards. It also makes pressing the Control key a lot easier.
solarexplorer··on Adding custom RISC-V instructions to an open-source rv32 SoC
I wonder if RISC-V has a standard way to handle these custom instructions. Is there an easy way to trap these custom instructions and emulate them in software, or is there something like CPUID, or do you just don't distribute the binaries with the custom instructions?
solarexplorer··on iOS and Android config-driven experiments without new releases
Or you could just use React Native and push new features directly to the app...
solarexplorer··on Swift Protocol Oriented Programming and Testing
I have seen this a lot, am I the only one who thinks that this is ugly?

Crafting a protocol after the fact to match some class' interface (and then put an empty extension) seems just wrong.

I very much prefer to pass simple types around. (like two closures in this case) You don't need to remember any protocol name and don't need to define a ton of mock objects.

solarexplorer··on What's Inside the EU Green Pass QR Code?
To check with your passport/id card that this is your QR code and not someone else’s…
Page 1 of 7Next →