HNHacker News
TopNewBestAskShowJobs

strictfp

2,733 karma · joined April 30, 2011

submissionscomments
strictfp··on Myths about Perl 6
TIL that Perl 6 is an APL wannabe
strictfp··on D as a C Replacement
>> I've preferred C to C++ and D to C++ for a long time. To me when I read C++ code it's like the modem disconnected in the middle of the editing session with all the : and << flying around.

I'm sorry, but even though I think D is a great language, there are plenty of usecases where D isn't a viable alternative to neither C or C++.

If D had all those missing features, or if you compared D to some other mainly-GC:ed, statically typed and compiled language, I think the syntax comparison would have been more fair.

strictfp··on Many-valued logic
Made me think of "don't care" in digital logic: https://en.m.wikipedia.org/wiki/Don%27t-care_term
strictfp··on 'I’ve become isolated': the aftermath of near-doomed QF72
Well, I can imagine the F16 g-limiting system messing with flight controls if the g-sensor is botched.

In my eyes the problem isn't so much that the systems are overly invasive, it's more that the failure modes of automation aren't well understood or signalled and cannot always be remedied.

strictfp··on PHP in 2019
No, but PHP does not get in your way unlike many other web frameworks.
strictfp··on PHP in 2019
It also allows you to utilize and extend the full http protocol, something which most "serious" frameworks hinder.
strictfp··on WhatsApp voice calls were used to inject spyware on phones
Story time.

A close friend of mine was held in custody in the US based on false accusations by a police officer.

The police officer later admitted the false accusations to the judge, that he just wanted to "scare him a bit". The judge nodded, proceeded to aquit him of all offenses exept the speeding ticket which he deserved, and off he went.

strictfp··on Google launches new “portal” HTML element
The good thing is that they are already starting, so that the red flags are risen early.
strictfp··on To ORM or Not to ORM
I've used many ORMs. I don't hate them, but I think their net utility is negative.

While you initially might think that interfacing with the db is going to be very tedious and labor intensive, it usually turns out to not be that bad.

Battling the ORM to make it do what you want can on the other hand be very tedious.

When you have the SQL in the code it's much more obvious what the performance profile and potential concurrency problems are. That's very important to solve real problems which arise in almost all projects with some scale.

If I were to choose my tools, I would pick some sql-based schema versioning system, and potentially a simple data mapper for moving data back and forth between db records and entities.

But I would be very reluctant to use a full-blown ORM nowadays.

strictfp··on Efficient IO with io_uring [pdf]
Interesting implementation. How did the buffers survive process crash? Is that a side-effect of get_user_pages or did you have a userspace daemon?
strictfp··on I/O Is Faster Than CPU – Let’s Partition Resources and Eliminate OS Abstractions [pdf]
One idea I've been throwing around is to replace files with HTTP resources; everything is a resource. Effectively Plan9s idea, but the time might be right.
strictfp··on Use mmap with care
TRWTF is Breakpad, trying to deal with the process crashing from within the process itself. Even requires PTRACE to work.
strictfp··on Show HN: Lorem Picsum – Lorem Ipsum but for photos
Hello from Realms!
strictfp··on Docker Hub Hacked – 190k accounts, GitHub tokens revoked, builds disabled
Same here.
strictfp··on Neuroscientist Larry Cahill on the ‘neurosexism’ debate
And as a consequence, gender scientist refuse to address or even comment on conclusions of studies in other fields. Instead they prescribe implementing their methods and observing the outcome as the only way of performing experiments. So in a very practical sense, they are experimenting with society at large rather than with their research subjects. It's very nonscientific and dangerous practice.
strictfp··on Neuroscientist Larry Cahill on the ‘neurosexism’ debate
This. I think we have to dismantle roles which have extreme expectations. If you're expected to be available 24/7 and basically abandon your family for your job, it's something which overwhelming selects for men, who have that classic role in society.

I think this is the most important question to solve if we want more equal outcome in worklife.

strictfp··on Lvalues, rvalues, glvalues, prvalues, xvalues, help (2018)
Agreed. RVO is not guaranteed, and move is complex. Smart pointers have overhead. Out params are for the most part a sensible choice in C++. Sadly. I'm honestly shocked that this problem hasn't been addressed in a better way.
strictfp··on French ISPs Ordered to Block Sci-Hub and LibGen
Yeah, everyone is so defiant that they don't realize that IP and VPN blocks are coming if we continue down this road.
strictfp··on Keeping CALM: when distributed consistency is easy
Interesting results.

The results seem very useful when reasoning about coordination in programs, but I'm questioning how practically useful these results are when applied as methods.

In the GC example, for instance, you do need to find the garbage nodes. Any trivial way of re-formulating that search in a monotonic way would likely destroy performance. My guess is that it's no silver bullet to solving problems in distributed systems.

strictfp··on Case Study: Npm uses Rust for its CPU-bound bottlenecks [pdf]
To me it reads as "We didn't want to use Java".
strictfp··on Amazon Web Services CEO: We’re a $30b revenue business in the ‘early stages’
Sweden.10Gbps for 30$ / month. It's kind of a long-running launch campaign, but still. https://www.bahnhof.se/villafiber/
strictfp··on A monad is a monoid in the category of endofunctors, what’s the problem?
Having studied abstract algebra before using FP, I must say that I instantly made this connection when I came into contact with monads, and that it helped me a lot to understand them.

So I wouldn't be so quick to dismiss the idea of associating these concepts. After all, category theory is all about making that kind of associations.

strictfp··on Lock-Free Rust: Crossbeam in 2019
Rust enforces exclusive access to a variable before it allows mutation.

But there are plenty of data types like smart pointers, where multiple copies of the original smart pointer points to the same underlying data.

In the eyes of the compiler, these are different variables, and can be manipulated independently.

When writing said smart pointer, however, Rust won't allow you to share data between copies unless you explicitly ask for disabling some of the compile checks. When you do this, you need to manually ensure (thread) safety. And this is where locks and other concurrency primitives generally come in handy.

strictfp··on Lock-Free Rust: Crossbeam in 2019
LMAX? Really? Did you get LMAX to work well? I never did.
strictfp··on Ask HN: How do you motivate yourself to keep working on a project?
For what it's worth, I totally agree with you. Payment providers assume that you spend ages understanding their implementation and mental model. I think the main problem is that everyone thinks it's boring, so no talented coders have written an api that abstracts all the finicky details away.

When it comes to motivation, I usually pick my tasks in such a way that I don't exhaust myself. Typically, I would push a daunting task until I have a really good day and feel ready for a new challenge.

strictfp··on British Telecom bars Huawei's 5G kit from core of network
Life's Good - Lucky Goldstar
strictfp··on The Most Misread Poem in America (2015)
Lexing vs parsing. ;)
strictfp··on The Most Misread Poem in America (2015)
Except that if you investigate it turns out that most people don't actually listen to the song texts to any meaningful degree.
strictfp··on Spatial: A High Level Programming Language for FPGAs
I find a setup guide, but no code examples whatsoever. Am I missing something?
strictfp··on First-party isolation in Firefox: what breaks if you enable it?
I guess trackers will just ask websites to route analytics traffic through their own infrastructure. Would it be enough for example.com to setup a dns alias pointing tracking.example.com to tracking.com?
← PreviousPage 10 of 25Next →