HNHacker News
TopNewBestAskShowJobs

0xdead

-13 karma · joined July 8, 2019

submissionscomments
0xdead··on Why are we so bad at software engineering?
Totally agree. SWE is the only field where people can call them "Engineers" without having an actual engineering degree.
0xdead··on Firefox 73
That's not true. Operating systems don't know if a process is a browser.
0xdead··on A Teacher Did an Experiment to Show the Power of Handwashing
NOT washing hands is important too. Letting a little bit of bacteria into your body strengthens the immune system. It is important to sometimes let your kids pick up food from the floor and eat it.
0xdead··on Critical Bluetooth vulnerability in Android
If by "write kernel/bare-metal level code" you mean blinking an LED, sure. Writing low level doesn't have to do anything with C or any language for that matter. It requires a deep understanding of the architecture that you're writing code for. Junior JS devs don't have enough experience or the skills to do that.
0xdead··on ZZ is a modern formally provable dialect of C
I have an anecdote to share. I work in embedded space for a living. A web developer (which is quite funny) from another team somehow convinced our director to use Rust for a critical process that involved a lot of concurrent processing. Ok, I said, and began developing that process in Rust.

I estimated that it took me about 10x the time to implement something than it would have taken if I did that in C. The reason for that could definitely be because I'm not a Rust expert at all. That's fine though because I will happily invest more time in programming if it saves me hours of debugging later. Plus, the claim that "if it compiles, it works" was enough for me to fight the compiler for hours if it gives me no trouble during runtime.

Fast forward a week, we have that binary deployed to a non-critical set of our field devices. A few days later, we get reports of that particular binary crashing. I logged into one of those devices and fetched the logs. The binary was reporting a panic on an MPSC channel's tx send. There was nothing useful in that error message that would point me to the root cause. I had no tools to attach to a running process because I'm on a device with an ancient kernel.

To fix the situtation "temporarily", because the customer is getting infuriated, we redeploy our old C binary. It has been there since. I basically now say "fuck off" to anyone who tells me to use Rust because it doesn't work if it compiles.

0xdead··on C# Pattern Matching
Why are you being downvoted?
0xdead··on India reports its first case of coronavirus
Please stop spreading misinformation outside Twitter, where Indian media is basically rampant, to communities like HN.
0xdead··on Let's Destroy C
Perfect usage of the title to get on HN frontpage.
0xdead··on Being a Noob
The reasoning of the author is totally flawed. If you feel like a noob locally, there is no guarantee that you will not feel like a noob globally too. In other words, it's not always good to feel like a noob.
0xdead··on Fortran.io – a Fortran Web Framework
It's about time we had another fad.
0xdead··on What is Rust and why is it so popular?
Does anyone know how StackOverflow measures "love" towards a language?
0xdead··on A Sad Day for Rust
I wish I could upvote this many times.
0xdead··on My C code works with -O3 but not with -O0
Congratulations. You have succesfully regurgitated the same sentence I've read here a thousand times.
0xdead··on My C code works with -O3 but not with -O0
No. I'd rather learn how to use my tools (that I have invested years to be comfortable with) properly than starting over.
0xdead··on Mozilla lays off 70
Mozilla doesn't need employees when it has so many people white-knighting it on the internet.
0xdead··on The new Microsoft Edge is out of preview
I'm not entertaining any new browsers that aren't written in Rust.
0xdead··on 2019's Fastest Growing Programming Language Was C, Says Tiobe
I can say that for every language on earth. C is the best of the alternatives in a lot of areas. And yes, C++ is almost always a bad alternative to C.
0xdead··on Mozilla says a new Firefox security bug is under active attack
I wish there was a way to PM on HN, atleast for mods to HN users. I mean no offense, but public humiliation isn’t useful most of the times.
0xdead··on C, what the fuck??!
Please don't comment on the state of programming in 2019 if you're an Angular developer.
0xdead··on C-for-all: Extending C with modern safety and productivity features

  $ cat hello.c
  #include <stdio.h>

  int main(void)
  {
   printf("hello world\n");
   return 0;
  }

  $ cat hello.cpp
  #include <iostream>

  using namespace std;

  int main(void)
  {
   cout << "hello world" << endl;
   return 0;
  }

  $ gcc -o hello_c hello.c
  $ g++ -o hello_cpp hello.cpp
  $ ll hello_*
  -rwxr-xr-x 1 root root 5880 Dec  5 14:13 hello_c
  -rwxr-xr-x 1 root root 7424 Dec  5 14:14 hello_cpp
I see 1544 bytes of bloat. Hope that helps.
0xdead··on C-for-all: Extending C with modern safety and productivity features
The language itself is pretty good for systems programming. It's the lack of tooling (as compared to C) that renders it unsuitable for any real world systems programming projects.
0xdead··on C-for-all: Extending C with modern safety and productivity features
> writing C++ does not automatically make your code bloated

Sorry, but it does.

0xdead··on Simple Dynamic Strings library for C, compatible with null-terminated strings
You can "accidentally" do a lot of things that any compiler in the world won't warn you about. This isn't an excuse to not use a good library/tool.
0xdead··on Ask HN: What has made you a better problem solver in software engineering?
Working on real world problems without seeking help from Google/StackOverflow, even if it means reinventing the wheel to make it fit for your particular problem, or even going through pages of documentation/code to find the purpose of a single function. It may sound like a waste of useful time, but it slowly makes you self-sufficient to deal with any kind of issues later on.
0xdead··on Ask HN: Is there a better employment route to high earnings than FAANG?
You have a problem that you will never be able to resolve, even if you are making $1m per year. Learn to be satisfied with what you have.
0xdead··on How to make your C codebase Rusty: rewriting keyboard firmware keymap
I'd pay for something that filters out front-page titles with specific words in them.
0xdead··on Beating C with 70 lines of Go
> Go can be a viable alternative to C as a systems programming language

Stop this nonsense please. This does not show anything even remotely close to systems programming capability of Go. Write a device driver in Go that performs without lagging, benchmark it and then come back.

0xdead··on Some Indian Twitter users are leaving for Mastodon
On the bright side, it will reduce the number of most obnoxious pricks on Twitter. Indian twitter army is one of the worst "communities" on internet.
0xdead··on Async-await on stable Rust
Can Rust's async even work on an Arduino or any bare-metal system?
0xdead··on Async-await on stable Rust
I'm pretty sure "a lot of people" here never go past a "Hello World" project in Rust.
Page 1 of 2Next →