HNHacker News
TopNewBestAskShowJobs

delta_p_delta_x

5,063 karma · joined July 15, 2021

submissionscomments
delta_p_delta_x··on I love software rendering
By 'impossible', I mean it in a very strict sense of blitting full-screen frames directly into the framebuffers provided by HDMI or (e)DP representing a visible surface. This is still kind of possible in Windows when games are properly full screen and not 'borderless full screen', but the OS still does compositing in the background, and the GPU is still involved to some extent.

Of course, offline rendering is a different story.

delta_p_delta_x··on I love software rendering
Indeed. I wrote up a commment[1] explaining why code editors needed graphics acceleration some months ago; this ties in to that.

[1]: https://news.ycombinator.com/item?id=44966266

delta_p_delta_x··on I Love Software Rendering
Indeed. Personally I am quite old-school, I like MSAA (despite the performance hit) and subpixel morphological AA (SMAA, used to great effect in Crysis). DLSS is interesting but I cannot unsee the artifacts.
delta_p_delta_x··on I love software rendering
> If you mean that this style can be achieved with graphics hardware

I really ought to have been more specific with my first sentence to ward off any hair-splitting.

The author claimed to love software rendering, but the examples given to highlight the supposed positives of software rendering can all be achieved on GPUs. If the author had instead highlighted the ability to easily debug and inspect the inner workings of the rasterisation pipeline with a software renderer, that might have been a much more relevant argument.

delta_p_delta_x··on I love software rendering
I've mentioned this elsewhere, but nowadays, anything you see out of an HDMI/DP/eDP cable comes out of a GPU. Modern OSs make it impossible to do 'software rendering' any more; it's just that much faster and that much more efficient, even if it is harder to program directly. Even IPMI BMCs have a tiny GPU doing stuff.
delta_p_delta_x··on I love software rendering
This isn't software rendering, it's called turning off spatial anti-aliasing. You can still do that in the modernest of modern games. Software rendering went out of the window because the CPU tends to have other things to do whilst playing the game besides only multiplying 4x4 matrices, which was shifted to the shader cores of GPUs. The look-and-feel that the author is discussing including shadow and texture LUTs can also be done on GPUs by passing the tables in to shaders as constant read-only storage buffers; that is not specific to software rendering. It bears mentioning that many modern software renderers (LLVMpipe/Lavapipe, OpenSWR, WARP) are basically full D3D/OpenGL/Vulkan devices in their own right, including shader compilers.

Also, modern spatial anti-aliasing works by multisampling within a pixel (or even neighbouring pixels) and taking the average, rather than filtering across singly-sampled pixels, which massively reduces the quality. Not to mention temporal and machine learning AA techniques including DLSS, XeSS, FSR, and all the TAA implementations in many games.

delta_p_delta_x··on Last rites for Gentoo's Chromium package
Big company does big company things like cross-category marketing for a new product.
delta_p_delta_x··on Last rites for Gentoo's Chromium package
Fair response.

I singled it out because I've been badly burnt by it in the past, and I dislike how it works compared to Win32. Back-targeting old glibc from newer (a very common case because developers tend to have newer distros than their users), requires either changes in source code (not build code, which is where it ought to be) to explicitly pin versions, or the ridiculousness of firing up an entire Docker container just for old glibc. It has regularly caused issues for things like Steam on Linux.

delta_p_delta_x··on Last rites for Gentoo's Chromium package
There is not some arbitrary notion of wheel reinvention just for browsers. Calling browsers 'just browsers' is doing their feature set a huge disservice: they are bona fide operating systems or virtual machines, which have to load and run untrusted, unverified data and code within critical system libraries (many of which with kernel-mode access, such as GPU drivers, sound drivers, USB subsystems, and more), and do a huge amount of sandboxing to guard against escalations.

Within Google, a Chromium build uses remote build execution by default, upstream Clang by default (for the latest features and fixes, and Chromium developers regularly contribute to LLVM), and needs to cross-compile easily for at least a dozen different OS-architecture triples (Linux x86-64, Linux ARM, macOS, Windows x86-64, Windows on ARM, iOS, Android x86-64, Android ARM, Android TV, some BSDs, etc).

Everything you've listed—from ninja, to Clang, to libraries with custom patches, to Clang releases, including requiring pre-releases sometimes—is optimised for Google's scale, rather than the lone warrior developer. What you call 'sane Linux defaults' (especially the examples you have listed: GCC, automake, so-called 'system libraries') are highly antagonistic to all of the above.

They may make life easy for the so-called 'default case' of desktop Linux (arguable; Chromium was first released on Windows, and secondly since desktop Linux's most common C library, glibc has an unstable ABI, making back-portability impossible), but make it incredibly hard to get out a project of such immense complexity. All of Chromium's tooling and 'complexity' was developed in response to the 'sane' defaults being not so sane after all.

To get a GCC cross-compile for a given set of architecture triples, one needs a complete graph of GCC toolchains targeting every pair of host and target. On the other hand Clang is natively a cross-compiler; pass in `--sysroot` and the host compiler will redirect for the target instantly. Automake (and the autotools in general) is slow as molasses compared to ninja. It is based on computing and compilation from the 1970s, and their defaults probe for long-since-dead string comparison functions that are expected to work by default nowadays on most hosted systems. Not to mention it has an extraordinarily complicated configure step[1], and an equally appalling macro-based configure language.

Ninja is purely declarative, and is not even meant to be human-readable, as it is a back-end for a variety of build generator tools (CMake, XMake, build2, Bazel (Blaze internally at Google), Meson, probably more). Google have in fact rewritten Ninja to be a remote-build-capable tool from the outset[2], and they call it Siso. Siso has more than halved my Android build times even compared to Ninja because of its incredible use of RBE.

Frankly I think it should be evident why they have opted for 'rewriting the world' including vendoring and modifying system libraries, as well as including efforts like Skia, ANGLE, and more: directly relying on 'system libraries' is painful. I mentioned GPU drivers. Imagine rewriting the same code over and over to have precisely the same behaviour on D3D, Vulkan, OpenGL, Metal, and every single vendor GPU driver on every single system (and there are a lot more on mobile than on desktop: ARM Mali, Qualcomm Adreno, Samsung Xclipse, Imagination PowerVR, Huawei, MediaTek; this is not even close to exhaustive, just look at the Khronos vendor list).

When comments like yours are made I wonder if there is ever a consideration beyond 'it makes the developer's life hard'. As developers, our ultimate target audience are the users of our software. We should be willing to do anything come hell or high water, even making the dev-ex extraordinarily convoluted, if it means the user experience will be the smoothest and fastest possible. Sure, there is a balance, but I believe it should be strongly skewed towards the user story first.

[1]: https://upload.wikimedia.org/wikipedia/commons/8/84/Autoconf...

[2]: https://chromium.googlesource.com/build/+/refs/heads/main/si...

delta_p_delta_x··on The tilde in your PATH may not be your HOME
> Have a universal Path env var that isn't tied to a specific shell

This sounds like Windows. ;)

Environment variables are stored in the registry; for the user, it's

  HKCU\Environment
and for system-wide env vars, it's

  HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
delta_p_delta_x··on Automatic Transmission – a data-privacy study of connected vehicles
I'm not surprised the Mercedes has the best privacy...
delta_p_delta_x··on How Delhi cut electricity loss from 50 to 5 percent
Singapore is also a 730 km^2 island city-state with a population of about 6.2 million people. I have honestly no idea why people and articles keep comparing it to literally the largest countries on the planet both in terms of land area and population. Ask any other wealthy cosmopolitan world city of about the same area and population what their electricity reliability figures are, and the answers will probably be quite similar.

Inb4 (in this case in-after) trope answers (see below) like 'veneer of perfectly clean and orderly society', 'punitive'. It is small; that is why it can get stuff done.

delta_p_delta_x··on Apple has added persistent 'ads' to iOS, and it's driving users crazy
> seat heater subscription services going for BMW?

Own a recent-ish BMW. Haven't had to pay for heated seats; I have a button on my climate control to switch it on/off/change the heat levels.

delta_p_delta_x··on Waymo in Singapore
In places like Serangoon North (which is highly residential, I might add), or some atas area like the green bits of River Valley etc, which are genuinely 2+ km from any MRT station, even the buses can take forever as they get stuck in traffic.
delta_p_delta_x··on Waymo in Singapore
I think you might not have read the rest of what I wrote. Just because cars are super expensive doesn't mean people don't buy them or don't use them. People regularly take out 7-year loans to finance the car + COE + ARF + VES.

My point is that the land use in Singapore truly shows where LTA's priorities are. Look at Tengah or Bidadari, both brand-new neighbourhoods. Huge, wide 6+-lane dual-carriageways with hardly any traffic on them.

My family has a car in Singapore that has about 70000 km on the odometer after about 6 years of driving, which is quite a lot for purely urban driving. The fact is I can get to most of destinations in about half or a third the time it takes on public transport. It is primarily why I drive if I have to get there quicker.

delta_p_delta_x··on Waymo in Singapore
Singapore says it likes to be car-lite, and makes cars correspondingly expensive, but the government doesn't seem to truly walk the talk.

Singapore uses about 11%[1] of its extremely limited land area for land transport (primarily, roads, since all railways are urban passenger rapid transit and not freight). I believe this is too much. 10-13 lane stroads are not uncommon, especially at junctions[2]. Singapore needs more light rail, trams, and permanent bus lanes with bus priority signals, as well as considerably more traffic calming measures in residential neighbourhoods.

Don't get me wrong, its mass rapid transit story is superb, first in class, but mixed-mode transport and last-kilometre connections need to be better.

Also, and related to the post: the Tamil in the website is wrong. Even in the colloquial register I haven't really heard anyone say 'வந்துட்டு'; it ideally ought to be the formal 'வந்துள்ளது'. Better still, a simpler and more accurate translation of 'Waymo in Singapore' is 'சிங்கப்பூரில் Waymo'.

[1]: https://tablebuilder.singstat.gov.sg/table/TS/M891211

[2]: https://maps.app.goo.gl/gg7HR7H3qBJmBz4U6

delta_p_delta_x··on Waymo in Singapore
COE was around 30K in the first year of COVID. Not exceptionally long ago. We have a continental car we bought at the end of 2020 with a 41.5K COE; we paid less in total than what a base-model Corolla costs nowadays.
delta_p_delta_x··on Global shortage has led to motor oil rationing at Costco
The solution is not an SUV, but an MPV.

In almost no situation are pickup trucks, SUVs, or even a crossover the correct kinds of vehicle.

delta_p_delta_x··on Global shortage has led to motor oil rationing at Costco
Things can be hauled just fine in an estate, saloon, or even a hatchback. European camper vans are regularly hauled by tiny Golfs or Polos with barely a litre of engine displacement and a hundred kilowatts of power.

Americans just buy much bigger vehicles than necessary.

delta_p_delta_x··on Stop making swap partitions—use swap files instead
This single comment of yours has in my eyes made your entire post worthless.

SystemD has single-handedly consolidated and streamlined Linux administration. I think valid criticism is useful, but calling it malware is a non-sequitur.

delta_p_delta_x··on Rust is tier-1 language at Microsoft
Also in aviation, but with caveats; you want to take off and land with a headwind, because the headwind gives a greater airspeed which means greater lift.
delta_p_delta_x··on Rust is tier-1 language at Microsoft
Calling the Weather app an 'app' is doing all the Win32, WPF, WinForms and WinUI developers a huge disservice.

It is essentially an entire Chromium instance around msn.com/weather.

delta_p_delta_x··on Rust Is Tier-1 Language at Microsoft
Not to be confused with the other R#, which is ReSharper.

https://www.jetbrains.com/resharper/

delta_p_delta_x··on Rust is tier-1 language at Microsoft
lld-link is already a big step up from link.exe. Although the latter has incremental linking, which none of the Unix-like linkers have.
delta_p_delta_x··on What algorithm did Windows XP use to choose your initial user picture?
I feel Vista was by far the best. 7 simplified it a bit, but that Start orb and black taskbar on Vista, man, that was glorious.
delta_p_delta_x··on Icy Moons Are Ocean Worlds
There is much to be said about the irony in said New Worlders refusing to get with the programme, and instead obstinately clinging to an ancient, Babylonian-Roman-Anglo-Saxon-Viking hodge-podge of units instead of something modern and universal.

> make technical writing parsable by the unwashed masses

> If the masses want to understand science they should just go to Oxford

This is a bad strawman. I learnt scientific notation in secondary school. I expect most educated people to understand what is meant by '1.5 × 10^8 km' in an instant. If they don't, then honestly, skill issue, and it is a big indictment of their parent country's education system.

delta_p_delta_x··on Icy Moons Are Ocean Worlds
For science education, I am strongly for using the units directly to describe everything at first, with these looser comparisons in brackets, rather than inline prose. So I would've instead said, 'is 500 km in diameter (roughly the size of Ohio, or Germany from East to West)'. For extremely large or small values I would use scientific notation only, and expect my audience to understand it, because I'd expect their education to be up to mark.

You said these comparisons are made to make things real or relatable; I personally would expect more out of my audience and give them the magnitude and units directly. I'm not writing for a tabloid; having a strong grounding in units understanding without needing to relate to daily phenomena is in my view critical to not making apparently trivial mistakes that can potentially lead to horrible disasters.

delta_p_delta_x··on Icy Moons Are Ocean Worlds
Lovely article. Although:

> Enceladus is far smaller than the Jovian ocean worlds, roughly the size of Ohio

Why not just say 'has a diameter of about 500 km'? The propensity of astronomers to compare diameters of a small spherical object to a surface patch of a much larger spherical object is intriguing. Similar things happen with 'the Great Red Spot is about two Earths wide'.

delta_p_delta_x··on Icy Moons Are Ocean Worlds
Io is in orbital resonance with Europa and Ganymede, which causes its orbit to be slightly elliptical. Due to Jupiter's immense gravitational field strength, Io experiences a very high changing tidal force, which causes a changing stress and strain on the entire structure of Io, which causes tidal heating due to friction. This makes it by far the most volcanically active body in the Solar System. Its surface is regularly completely resurfaced, and is covered in sulfur compounds.
delta_p_delta_x··on GamersNexus and LG: Or why rooting your TV is a bad idea
> only RF down the TV antenna input

Holy shit. RF to zero-click exploit is a new one. I guess digital-everything wasn't always a good idea, this probably wouldn't ever have been a problem with analogue antennas and CRTs.

What are the people at LG even doing?

← PreviousPage 2 of 34Next →