HNHacker News
TopNewBestAskShowJobs

dirtydroog

-4 karma · joined January 28, 2020

submissionscomments
dirtydroog··on Concurrent Programming, with Examples
Perhaps the 'I need answer in a hour' is currently acceptable because that's how long people are used to waiting for the answer. If they knew that you could get that answer in 2 minute do you not think they'd ask for that instead?

Like I mentioned previously, Scala's use in Big Data is perplexing. I reckon Cloud providers are making an absolute mint from design / language inefficiencies.

dirtydroog··on Zig cc: A drop-in replacement for GCC/Clang
LD_PRELOAD is really useful, especially if you want to change memory allocators without having to recompile.

I never realised people were moaning about shared libraries.

dirtydroog··on Concurrent Programming, with Examples
> We don't write programs for machines to understand. We write programs for humans to understand.

True, but that program ends up executing on a machine. You normally want that program to execute as efficiently as possible. 'Efficiency' can be measured several ways... time to complete, resources required, financial cost.

A case in point is our company switched from using Cassandra (JVM based) to ScyllaDB (a C++ clone of Cassandra). Query latencies were the same if not faster, and we needed fewer nodes to handle the same load. All because the language used has some mechanical sympathy for the CPU it's going to run on, and no GC.

I see Scala is somewhat the defacto language used for 'big data' stuff. I have no idea why. I reckon if some bean counter translated that choice into $$$ things would change.

dirtydroog··on Concurrent Programming, with Examples
I don't get the immutable data structures thing though. If I have a vector of 1 billion numbers and I need to sort it it'll be unfeasible to make a copy every time I swap elements. RAM isn't infinite either.

So, deep down in the guts of the language's libraries there must be mutable operations. Which kind of defeats the whole point.

I don't get point of functional programming. Machines don't work that way.

dirtydroog··on Discord outage postmortem
> unexpected deserialization error

I've had this with Boost.Serialization. Not fun. No exception, just a crash.

dirtydroog··on Converting an old MacBook into an always-on personal Kubernetes cluster
> But MacOS does handle low memory conditions much better than Windows does.

Interesting, my work machine runs a linux vm on a windows 10 host. It regularly uses 95 to 96% of my 16GB RAM. When this happens Linux grinds to a halt yet Programs running on Windows are still usable. MacOS must be amazing,

dirtydroog··on Decrypting Blind's Encrypted API
And all those medium.com articles they write...
dirtydroog··on Turns out claims Airbnb was taking houses out of the rental market were right
They were merely exercising their human right.
dirtydroog··on Apple is looking for engineers to convert its code from C to Rust
Well yes, because LLVM generates the machine instructions
dirtydroog··on Has the Covid-19 response gone too far?
He's saying that it's the combination of COVID-19 and other illnesses that cause fatalities. Getting COVID-19 on its own won't kill the majority.
dirtydroog··on Chinese scientists destroyed proof of virus in December?
There's a chance the meat is cooked with recycled 'gutter oil' too

https://youtu.be/e7S7r31cjAQ

dirtydroog··on Firm wielding Theranos patents asks judge to block coronavirus test
Correct me if I'm wrong, but if a patent holder doesn't defend their patent isn't it possible for them to lose it?
dirtydroog··on Norwegian Air to cancel 85% of flights and temporarily lay off 90% of staff
Yup, Norwegian Air is about to go bust.
dirtydroog··on Timeouts and cancellation for humans (2018)
Boost.ASIO (C++) does not expose the SO_RCVTIMEO socket options and instead makes you use a deadline_timer explicity. It's very annoying but this article kind of explains why it is that way.
dirtydroog··on One Word Broke C
It's C++, but UB allows the compiler to call a function the programmer never called

https://kristerw.blogspot.com/2017/09/why-undefined-behavior...

I'm not sure how any compiler writer can condone this behaviour.

dirtydroog··on Layoffs Are Coming
European airlines are already announcing layoffs.
dirtydroog··on Harvard epidemiologist: my colleagues assumed UK coronavirus plan “was satire”
That'd be racist or white supremacy, or something. Australia doesn't care about this.
dirtydroog··on Harvard epidemiologist: my colleagues assumed UK coronavirus plan “was satire”
"This page isn't feeling well"

(LOL in Norwegian)

dirtydroog··on Harvard epidemiologist: my colleagues assumed UK coronavirus plan “was satire”
Boris just won a massive election landslide victory.
dirtydroog··on Harvard epidemiologist: my colleagues assumed UK coronavirus plan “was satire”
Try not getting into a large crowd at any point of your commute into London!
dirtydroog··on Microsoft plots the end of Visual Basic
Java still doesn't do unsigned
dirtydroog··on Microsoft plots the end of Visual Basic
Same. My brother brought home an illegal copy of visual studio and I was hooked pretty much immediately. We had no internet at the time so I found myself using the MSDN knowledge base articles for potential explanations.

It really annoyed me that I couldn't get nice bitmaps in menus so I eventually learned about Ownerdraw. That changed my life. Having to hook into the wndproc and all the other windows api calls introduced me to C, and so I naturally started experimenting with C++. All without internet, stackoverflow or groups.

I'm now write C++ for a living.

dirtydroog··on Microsoft plots the end of Visual Basic
My final year project was a VB6 -> JVM compiler. I underestimated how big VB6 actually was and so only had time to implement a small fraction of the language. I did discover a bug in the IDE's code completion/formatter that would cause a compilation failure when the project was next loaded. That code is on a floppy somewhere
dirtydroog··on Bottlerocket: An operating system designed for hosting containers
> As far as complexity goes, I would much rather have a nodes where a single application is running and using 100% of resources (instead of having containerd or k8s services running) and do simple autoscaling, having access to host-level metrics that I can map back to applications easier than use Docker, k8s & co. Maybe is it only me, but I care about efficiency. Why waste energy?

Hallelujah! I'd imagine inefficient containered architectures do more for the cloud provider's bottom line rather than help the customer.

dirtydroog··on Bottlerocket: An operating system designed for hosting containers
Remove SSH? Over my dead body!

What is container specific about all this? It just seems to be minimal images?

dirtydroog··on Robinhood goes down again, during another historic trading day
Well, market circuit-breakers are being triggered all over the world. I doubt anyone would be able to trade even if they could log in.
dirtydroog··on Twitter puts ‘manipulated’ tag on faked Biden video retweeted by Trump
Twitter just needs to be burned to the ground at this stage. It's a complete clusterfk. Only a moron would post anything on it. It can be fun to read through the car-crashes though.

Edit: The Verge's website is not GDPR compliant.

dirtydroog··on Ask HN: Bloated engineering titles?
It has to do with job responsibilities and probably pay bands.

An engineer isn't likely to lose their job if they make a mistake, it's expected that junior people will make mistakes. Instead the people in senior roles will be held responsible for allowing it to happen. This may involve losing their job. Nobody really wants to lose their job and so they'll be quite firm in preventing that, you may be interpreting this as 'showing your individual supremacy over others'.

dirtydroog··on My favourite Git commit (2019)
That is true, and it might not work for Open Source development, but I don't see managers trawling through git commits to see what was done / is in progress.
dirtydroog··on My favourite Git commit (2019)
That's just way too verbose though. There should have been a ticket with a description of the problem. Name the branch after the ticket and jira will automatically link the ticket to the commits that fixed it.

I've encountered bad utf-8 when data is copied from excel or outlook.

← PreviousPage 6 of 8Next →