HNHacker News
TopNewBestAskShowJobs

kanbankaren

182 karma · joined April 3, 2024

submissionscomments
kanbankaren··on Thoughts on Go vs. Rust vs. Zig
30 years in C/C++ here.

Give an example of UB code that you have committed in real life, not from blogs. I am genuinely curious.

kanbankaren··on OpenAI declares 'code red' as Google catches up in AI race
Remind me that PyTorch is not a GPU driver.
kanbankaren··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
I tried it on KDE Plasma(6.5.3) just now and it resets to 100%.
kanbankaren··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
How did you do it? It doesn't allow any value below 100%?
kanbankaren··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
That is why some of us still need X11 support.
kanbankaren··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
My monitor DPI is 70. 70/96 is 0.73, but there doesn't seem to be a way to set 73%?
kanbankaren··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
How did you arrive at 125%? What is the formula? Just eyeballing?

I set DPI so that a 15pt font occupies 15pt physical space on screen. Not sure how to set DPI using fractional scaling.

kanbankaren··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
How to do it? I am not talking about fractional scaling.
kanbankaren··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
Wayland has still no way to set DPI of multiple monitors. The fonts look terrible on it. I had to move to KDE Plasma on X11 ever since GNOME started forcing Wayland on us.

I guess I have to buy a 4K monitor in future.

kanbankaren··on SanDisk launches dongle-like Extreme Fit USB-C flash drive with up to 1 TB
The exFAT suggested below is really not resilient enough that I could trust GBs of data on it. Easily gets corrupted.

If you don't need to use it on Mac/Windows, use a FS like BTRFS with checksumming feature.

Don't use any FS that doesn't have checksum feature as silent bitrot is real.

kanbankaren··on The evolution of Lua, continued [pdf]
Not true.

I was programming in the 90s when these languages emerged. Developments environments were emacs, vi, Brief, Borland IDE, etc. There were a few other IDEs available, but about $200 per seat.

All the scripting languages mentioned didn't come as default in Unix or Windows. You had to download from their own websites.

It was mostly Visual Basic, C, COBOL that were popular.

kanbankaren··on Vitamin C Boosts Epidermal Growth via DNA Demethylation
Is the 80% absorbed Vitamin C through transdermal route cross the epidermis & dermis layers?
kanbankaren··on Vitamin C Boosts Epidermal Growth via DNA Demethylation
Well, there are already multiple skin creams with Vitamin C. They have been available for a long time, but they are expensive for what it provides.

Just taking a 500mg x 2 Vitamin C supplements should provide enough for skin repair.

kanbankaren··on In-Memory C++ Leap in Blockchain Analysis
> And when was the last time you found a bug in C-family code caused by someone who didn’t correctly use concurrency primitives because the programmer incorrectly believed that a certain piece of mutable data would only be accessed on a single thread? I’ll give you my answer: it was yesterday.

You answered my question. My original argument was using concurrency primitives "properly" in C++ prevents memory issues and Rust isn't strictly necessary.

I have nothing against Rust. I will use it when they freeze the language and publish a ISO spec and multiple compilers are available.

kanbankaren··on In-Memory C++ Leap in Blockchain Analysis
Show me a memory issue that was caused by proper usage of POSIX concurrency primitives.
kanbankaren··on In-Memory C++ Leap in Blockchain Analysis
Dude, provide examples of "terrible" memory issues. Otherwise, you are just repeating the folklore which is outdated.
kanbankaren··on In-Memory C++ Leap in Blockchain Analysis
What is wrong with C++?

With POSIX semaphores, mutexes, and shared pointers, it is very rare to hit upon a memory issue in modern C++.

Source: Writing code in C/C++ for 30 years.

kanbankaren··on Air India flight to London crashes in Ahmedabad with more than 240 onboard
The Economist?

I just unsubscribed from the digital edition. A neoliberal and globalization bias in overall tone.

kanbankaren··on Practical SDR: Getting started with software-defined radio
> We still have 50,000 watt clear channel stations

On shortwave, we even have 250,000 W transmitters just blasting RF everywhere.

We call them flame throwers for a reason.

kanbankaren··on Japan's IC cards are weird and wonderful
> current neighborhood

Context please? Which country and city?

kanbankaren··on I'm Peter Roberts, immigration attorney, who does work for YC and startups. AMA
What parts of the world?

I have found Asian countries, Japan and UK the same as US when it comes to customs experience.

kanbankaren··on Teal – A statically-typed dialect of Lua
It is true that LuaJIT is stuck at 5.1, but you could write any performance critical sections in C/C++ and call it from Lua.

Lack of LuaJIT for 5.1+ isn't that big of a deal for desktop apps. The embedded world is still stuck in 5.1, but for them, the benefits of the latest Lua is marginal.

kanbankaren··on Matt Godbolt sold me on Rust by showing me C++
> with very strict guidelines.

Low level languages always came with a set of usage guidelines. Either you make the language safe for anyone that they can't shoot themselves in the foot and end up sacrificing performance, or provide guidelines on how to use it while retaining the ability to extract maximum performance from the hardware.

C/C++ shouldn't be approached like programming in Javascript/Python/Perl.

kanbankaren··on Matt Godbolt sold me on Rust by showing me C++
> Given C++, I can't help but hold things wrong and shoot myself

Give an example. I have been programming in C/C++ for close to 30 years and the places where I worked had very strict guidelines on C++ usage. We could count the number of times we shot ourselves due to the language.

kanbankaren··on Matt Godbolt sold me on Rust by showing me C++
The C++ code I wrote 20 years ago also had strong typing and clear lifetimes.

Modern C++ has reduced a lot of typing through type inference, but otherwise the language is still strongly typed and essentially the same.

kanbankaren··on The language brain matters more for programming than the math brain? (2020)
Probably true. Math used to be written in prose style before we invented symbols to compress the prose. Most of the symbols are very recent just in the last 200 years or so.
kanbankaren··on What do I think about Lua after shipping a project with 60k lines of code?
Last 50 years?

Have you studied Software Engineering? They discuss LOC in depth and many academic papers on KLOC are in SE literature.

kanbankaren··on Landrun: Sandbox any Linux process using Landlock, no root or containers
Yes. You could match packets based on username or even SELinux labels.

You could also set a special mark on a packet for each container and then filter based on that. The Internet is surprsingly very thin on nft resources. I spent a few weeks learning how to write them. Definitely, not for the average consumer.

kanbankaren··on Bring Back Shortwave
I used this website to listen to stations just last week. If the signal strength displayed in the right-most column is 3 or 4 bars, I have been able to receive the broadcast most of the time. Of course, it depends on local interference and other conditions too.
kanbankaren··on Aspartame aggravates atherosclerosis through insulin-triggered inflammation
I don't know why it is rude to ask. Those are physical attributes that everyone can see IRL.
← PreviousPage 3 of 5Next →