HNHacker News
TopNewBestAskShowJobs

lucian1900

4,353 karma · joined June 19, 2011

submissionscomments
lucian1900··on Go 1.18 Beta 1 is available, with generics
Go switches with exhaustion checks like in [1] would go a long way. An early return construct would be important as well, though, you're right.

Go's for loops can only iterate over builtin types: slices, maps, channels, etc. You can't produce a custom type that is to be iterated over.

1. https://github.com/BurntSushi/go-sumtype

lucian1900··on Go 1.18 Beta 1 is available, with generics
Go is not Rust, but there is a lot it could learn from Rust without sacrifice: sum types, Result for error handling, iterators with for loop support, [edit] non-nullable types etc.
lucian1900··on Go 1.18 Beta 1 is available, with generics
The bit about "mechanical sympathy" is wrong, though. Plenty of languages inline map/reduce or iterator type code down to very efficient cache-friendly traversal of memory, most notably Rust.

Go's compiler is just particularly naive.

lucian1900··on HTTP/3 Is Fast
Python is unnecessarily slow, for sure. But I have rarely had to deal with endpoints slow because of Python, as opposed to slow because of unfortunate IO of some sort.
lucian1900··on Notes on the Go translation of Reposurgeon (2020)
Most statically typed languages have a type safe generic map or it can be easily built.

Just like with monomorphisation, Go just stubbornly rejects all PL research younger than 40.

lucian1900··on Young Dems more likely to despise the other party
Mostly aesthetic and cultural differences. Both lie about other countries, threaten war, perform coups and bomb other countries.

The US democrats exist to divert any worker resistance into channels they can then sabotage. In many ways they're more right wing than the US Republicans, especially when it comes to foreign policy.

lucian1900··on Q&A with the developer of BetterDummy: from macOS secrets to his motivations
It wasn't enough to start with for large monitors. High pixel density is important for text readability. A 30" screen at typical monitor distance has very few pixels per arcsecond.
lucian1900··on There are over one trillion SQLite databases in active use
The OS does do that, on behalf of applications CoreData or those using SQLite directly.
lucian1900··on Amazon is bypassing supply chain chaos with chartered ships and long-haul planes
US veterans aren't universally indoctrinated like that, there are exceptions: https://www.youtube.com/watch?v=mykWTaLsRbw
lucian1900··on New SiFive RISC-V core P650 with 40% IPC increase
Unfortunately, variable length opcodes are a problem for wide superscalar machines, i.e. the fast ones.
lucian1900··on Disclosing state-linked information operations we've removed
One exception (possibly used as cover) does not invalidate a trend.
lucian1900··on Disclosing state-linked information operations we've removed
Interesting how US official enemies get censored, but the US's own propaganda doesn't.
lucian1900··on Event Sourcing Is Hard (2019)
The GDPR concept is "personal data", partly since it doesn't just refer to ways to identify a person.

PII is a similar but different US concept.

lucian1900··on Flatpak Is Not the Future
Exactly. The situation is the same on Windows and macOS: the platform contains the vast majority of dependencies that might be shared across apps. Beyond that, apps bundle whatever they specifically need.
lucian1900··on Go does not need a Java-style GC
For some value of "strongly". It has nil and lacks sum types, so it is comparatively much weaker than even Rust/Swift.
lucian1900··on Low overhead C++ interface for Apple's Metal API
You exaggerate Metal's level of abstraction. It's still far lower level than OpenGL or D3D9 and allows most modern optimisations. It's supported by all popular game engines, same as with D3D12 and Vulkan. Of course there are plenty of niche ones that don't, but that's also the case for Vulkan.

In practice, games (usually through engines) overwhelmingly target the native graphics APIs. D3D12 on Windows and Xbox, GNM on PS5, Metal on iOS/macOS/tvOS, NVN on Switch, etc. In practice it doesn't matter much.

MoltenVK is not as good as DXVK right now, sure. That still has nothing to do with either Apple or Microsoft. They both offer exactly as much support.

The chips in MacBook Pros aren't the bulk of the cost. I think it's unlikely Apple would make a console, but still possible. They have all of the necessary ingredients already vertically integrated.

I am a game developer, btw.

lucian1900··on Flatpak Is Not the Future
Qt in your case is one of the exceptions, just like GTK for Gnome users.
lucian1900··on Chrome may start restricting requests to private networks
Bluetooth is entirely unrelated to other computers in cars. In fact, it's just the car's "radio" component that speaks bluetooth. You can easily install such a component in 70 year old cars. You'd only lack the ergonomic steering wheel controls, which are generally connected to the "radio" directly.

Other car functions use computers for very different reasons. The most successful is injection timing, which does significantly improve performance. It's why we have extremely efficient small diesel engines and reasonably powerful 1L petrol engines.

lucian1900··on Low overhead C++ interface for Apple's Metal API
They are both low-level APIs relative to OpenGL. The difference is mostly that Metal doesn't expose GPU vendor details.

Metal has sort of been ported to other platforms, WebGPU is almost a subset of it (albeit somewhat higher level). There's even wgpu to use it outside of a browser.

lucian1900··on Low overhead C++ interface for Apple's Metal API
Apple do have a robust high-performance API, Metal. Arguably it has the best ergonomics of any of the low-level graphics APIs. All relevant game engines already have Metal support, too. There's even an equivalent to DXVK in MoltenVK. It's not that different from Microsoft's position.

It's possible Apple might make an M1 Apple TV with a decent GPU. Like the Macbook Air, it's likely it'd be cheaper to manufacture than competitors with similar performance. I suppose we'll see.

lucian1900··on UK to ban any handheld use of a mobile phone behind the wheel
I would expect that isn’t usage of the phone, but of the car’s own controls.
lucian1900··on Chrome may start restricting requests to private networks
Bluetooth in cars is useful, especially since it allows the car’s built-in ergonomic media controls to affect your phone. Being able to take a call or pause your music without looking anywhere or moving your hands away from the wheel is a safety improvement.
lucian1900··on The Framework Laptop Is Great for a Linux-Friendly, Upgradeable/Modular Laptop
They also tend to use a bit less power.
lucian1900··on Favico.js – Make use of your favicon with badges, images or videos
As a user, I really appreciate that behaviour. I use the icon to identify a website, I don’t want it to ever change ideally.
lucian1900··on Apple MacBook Pro 14 and 16 Review: Return to Form
Exactly. Much more useful that the extremely niche SD card slot.
lucian1900··on MacBook Pro 14-inch and 16-inch review: Apple’s mighty Macs
Indeed. Surely USB-A is far more commonly used than SD cards.
lucian1900··on Django 4.0 alpha 1 released
It lacks a unit of work system to allow precise control over loading and saving data. It also lacks an abstraction for composing arbitrary SQL queries out of components. It’s sometimes very difficult to predict the number of queries that will be emitted.

It’s a reasonable ORM, but doesn’t compare to SQLAlchemy.

lucian1900··on Django 4.0 alpha 1 released
The ORM is the only weak point, the rest is widely considered stable and of quality.
lucian1900··on Revisiting Java in 2021 – Part II
There’s IKVM for running Java libraries in .NET.
lucian1900··on An appeal for an objective, open, transparent debate re: the origin of Covid-19
They did announce a new virus when it became clear it wasn’t SARS. Then most countries did nothing about it for months.
← PreviousPage 4 of 34Next →