HNHacker News
TopNewBestAskShowJobs

lpribis

320 karma · joined January 6, 2024

submissionscomments
lpribis··on The True Size Of
Use this site for that https://acme.com/same_scale/. It lets you compare any two map views at the same scale.
lpribis··on Detecting if an expression is constant in C
This is not for declaring constexpr variables, it is about how to implement a checker function that verifies an inline expression is constant. Plus some of the examples work back to C99 instead of C23, which I would wager close to zero people are using in real-world code bases.
lpribis··on Open Source DMR Modem Implementation in SDR with GNU Radio and Codec2
I see this is only tier 2 for now (conventional channels) and not tier 3/trunked yet.

Are trunked networks ever used in amateur radio or outside of big commercial/government systems? Is there a standardized way to feed back channel info to the SDR frontend for trunked operation in GNU Radio? Eg. The control channel will tell the terminal to tune to traffic channel at X Mhz to receive or send a call, which requires reconfiguring the frontend.

lpribis··on Is it possible to write plain C iOS app in 2025?
SDL2 + Lua is a pretty common combo. Lua is very easy to interface with and integrate.
lpribis··on Bringing SerenityOS to real hardware, one driver at a time
Writing to seek ofset N of /dev/port puts the written byte out on port N. There are 256 possible IO ports in x86 which afaik can be mapped arbitrarily by manufacturers. The hex encoding (using bash math eval syntax) is just for their convenience, so they can write `./outb 80 X` instead of `./outb 0x80 X`, as dd takes decimal parameters, not hex.
lpribis··on London's 850-year-old food markets to close
After translation via https://www.bullshitremover.com/:

> "Positive new chapter" = "We're closing this place down".

> "Empower traders" = "Kick them out".

> "Sustainable future" = "Nowhere to go".

> "Financial support and guidance" = "Good luck, you're on your own".

> "Unlock the huge potential" = "We'll figure something out, maybe".

lpribis··on No GPS required: our app can now locate underground trains
Not true for a lot of (widely used) systems. Both the NY subway and London Underground are manually driven for the majority of lines.
lpribis··on Starship Flight 5: Launch and booster catch [video]
No, each individual engine has 2 DoF (x-axis and y-axis rotation) which correspond to torque on x and y plane to the rocket. They need to use more than one at once (three in starship's case) pointing in different directions to get z axis torque.
lpribis··on Diode Matrix
Maybe the zero digit prefix is retained to signify octal base (C style)?
lpribis··on How to avoid a BSOD on your 2B dollar spacecraft
Don't know if it's publically available, but MS makes Windows IoT which is a stripped down distro for embedded systems.
lpribis··on Hinkley Point C: Building Britain's first nuclear reactor in 30 years
Some examples:

- c2c and Avanti West Coast: partially and fully owned by Trenitalia which is wholly owned by the Italian government

- London Overground, Chilltern Railways, CrossCountry, Grand Central: Owned by Deutche Bahn until June 2024 which is wholly owned by the German government

- Elizabeth line: Wholly owned by MTR transport which is wholly owned by Hong Kong government

I'm sure there are a lot more I missed. It doesn't just appy to foreign governments either. The UK government subsidized all TOCs with taxpayer money, many of which turned around and gave out dividents to shareholds (foreign government or not).

lpribis··on Starliner Is Such a Disaster That Boeing May Cancel the Entire Project
The Soyuz-MS which is currently on its 15th successful launch (prior to that had 1 abort without injury)? Versus Starliner which has ostensibly failed 2 out of it's 3 orbital flights to date, not to mention being scrubbed on the pad for critical valve issues and failing to open 1 out of 3 parachutes on its debut launch.

I know which one I'd rather get into.

lpribis··on An unordered list of things I miss in Go
Even worse when you see function X takes some parameters and then passes *args and **kwargs to a client function. Makes the available (or required) parameters very difficult to track down.
lpribis··on Enum class improvements for C++17, C++20 and C++23

    enum class Handle : uint32_t { Invalid = 0 }; 
    Handle h { 42 }; // OK
One of their examples demonstrates the number one issue for me with enums, which was not fixed with `enum class`. Since values outside the range of the type are valid, you are constantly needing to check for invalid values in any function that takes an enum [class]. Ruins any attempt at "parse, don't validate" style in c++ and completely ruins the "type safety" which c++ people are always going on about.
lpribis··on America’s Transit Exceptionalism
From my experience living in London, the tube is worse (at least the deep level lines which are much louder) but somewhat comparable to Montreal.

Both seem to come in around 80dBA average, but some of the tube lines peak at 90 or 100+dBA.

lpribis··on Reflection for C++26
What? This is only the proposal for reflection. Networking is completely separate.
lpribis··on Programmers should never trust anyone, not even themselves
"doveryay, no proveryay".

It rolls off the tounge so much better in Russian.

lpribis··on Welcome to Ladybird
As I understand, Ladybird was originally just the embedded HTML renderer for SerenityOS known as LibWeb. "Ladybird" is just the cross platform UI skin for an embedded LibWeb.
lpribis··on Tripping on Xenon Gas (2023)
Either way, it has been known for a while that xenon is an NMDA antagonist (hypoxia aside).
lpribis··on Tripping on Xenon Gas (2023)
> having caused any chemical changes in the body

But it does cause chemical chsnges. Noble gasses can weakly interact. It does not need to form bonds to influence potential gradients, protein shapes, or other reactions.

lpribis··on Tripping on Xenon Gas (2023)
I'm not very knowledgeable on this, but my understanding is that xenon can dissolve in the lipids in the brain and influence reactions in that state. This paper [1] seems to show that xenon can displace glycene in the NMDA receptors. The receptor is a "door" and glycene is one of the "keys" to open. By binding or interacting with the glycene site on the receptor, xenon keeps glycene from reaching the receptor, inhibiting it.

[1] https://pubs.asahq.org/anesthesiology/article/112/3/614/1084...

lpribis··on Tripping on Xenon Gas (2023)
No, xenon is a NMDA antagonist meaning it has dissociative/anaesthetic effects like ketamine or nitrous oxide.

TFA talks about the effects coming on "within seconds" of inhalation, so it is clearly not just hypoxia which takes tens of seconds or minutes to manifest.

lpribis··on Roman Roads (2017)
I assume this is the A5? That's very cool, I always thought it was odd how straight it is.
lpribis··on "No way to prevent this" say users of only language where this regularly happens
> Like assigning an address to then use as pointer to physical memory...

What do you mean by this? Like writing to a specific integer address?

    *((volatile unsigned *)(0x20001000)) = 0x12345678;
That's not UB and is also the only way to write to memmapped registers.
lpribis··on CamelCase vs underscores: Scientific showdown (2011)
The classic example of why whitespace in identifiers arguably causes more problems than it solves is https://www-users.york.ac.uk/~ss44/cyc/p/fbug.htm.

Since the space of valid syntax becomes so much larger, typos are more likely to result in valid but incorrect programs. Especially in dynamic interpreted languages like python.

lpribis··on CamelCase vs underscores: Scientific showdown (2011)
> The language's standard library will expose names using the language's convention

Looking at you, C++ STL. Almost nobody names structs/classes all lowercase. This leads to silly style guidelines eg. in the Google c++ style guide:

- Name classes PascalCase (even if it's templated)

- Except if your class happens to be a templated container type, in which case name it all lowercase.

lpribis··on How to read C type declarations (2003)
Ada and Pascal are both languages which allow multiple consecutive parameters with the same type and also use `name: type` syntax. I agree, even when using Ada/Pascal with colons its difficult to mentally parse.
lpribis··on Rust 1.78: Performance Impact of the 128-Bit Memory Alignment Fix
No, clang never had this issue since they bodged it in the front-end. From the post you linked:

> Clang uses the correct alignment only because of a workaround, where the alignment is manually set to 16 bytes before handing the type to LLVM.

Maybe it took long to notice because it was assumed to be working in LLVM since clang worked?

lpribis··on Answering Legal Questions with LLMs
How would you define "complexity score"? The complexity of options trading regulation should not be subject to the same complexity threshold as (eg) public intoxication laws.
lpribis··on TfL's simple pop-up message led to a significant drop in paper ticket sales
Maybe this is fixed, but they used to not even give you the cheapest ticket in all cases. I've used one for travelling just outside the oyster zone, and it recommended me a ticket that was 2x the price of the daily travel card to that location.
← PreviousPage 3 of 4Next →