HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dev-ns8

no profile record

comments

dev-ns8
·bulan lalu·discuss
Combined with a replication strategy and automated health checks, a load balancer could direct traffic to a healthy instance automatically.
dev-ns8
·2 bulan yang lalu·discuss
I recently purchased Computer Systems: A Programmer's Perspective [0] and am currently working through it with pen and paper.

I've only had peripheral exposure to writing in assembly and "systems level" programming so I'm really quite enjoying it.

[0] https://www.amazon.com/Computer-Systems-Programmers-Perspect...
dev-ns8
·3 bulan yang lalu·discuss
Not mentioned in my initial comment, but yeah, I'm viscerally aware of the affect the time period and resources at the time have on API design in C and other languages from that time period.

The null pointer in place of the operand here just seemed like a really good quirk to point out
dev-ns8
·3 bulan yang lalu·discuss
Besides my DA/Algo classes in College, I've never used C seriously. And you know, it's semantics like this that really make me go WTF lol....

From strtok man page... "The first time that strtok() is called, str should be specified; subsequent calls, wishing to obtain further tokens from the same string, should pass a null pointer instead."

Really?? a null pointer.. This is valid code:

  char str[] = "C is fucking weird, ok? I said it, sue me.";
  char *result = strtok(str, ",");
  char *res = strtok(NULL, ",");
Why is that ok?
dev-ns8
·4 bulan yang lalu·discuss
Something very similar to this was pulled of by Ukraine last year

https://en.wikipedia.org/wiki/Operation_Spiderweb
dev-ns8
·4 bulan yang lalu·discuss
Wow... A speculative branch prediction path actually get's preemptively executed despite the branch outcome? No matter if the execution has side-affects??? That's quite amazing. Are modern CPUs doing speculative execution like this and just put extra safeguards around affects or do they just prefetch / decode instructions now-a-days?
dev-ns8
·4 bulan yang lalu·discuss
Is this macro mapped in vim or OS level? Sounds interesting.
dev-ns8
·5 bulan yang lalu·discuss
Congrats on shipping!

Two things, does anyone else feel like 2017 was not 9 years ago and rather feels like it was just yesterday? I use a 2017 iMac running MacOS 13.7.8. It appears my hardware will not support any newer version of MacOS. For the most part, I haven't been too discouraged by this as I prefer older MacOS designs over the newer ones.

However, this is the second time in 2 days I've actually hit a wall in the Apple eco-system due to an older OS.

Last night I tried to build Ghostty to hack on a feature... it needs Xcode SDK 26 which isn't supported on Xcode 14 (latest version I'm able to install).

Now today, attempting to try this app out, I can't launch it due to being on too old of an OS.

It's really a shame because this iMac from 2017 is quite the capable machine. Absolutely no reason to upgrade it (from a hardware / performance standpoint).
dev-ns8
·10 bulan yang lalu·discuss
"No client simulation allowed only server."

Seriously
dev-ns8
·11 bulan yang lalu·discuss
Who knows if this is the reason that Trump is putting in place this trade war and increasing tariffs, but this paper is a very interesting perspective on why someone in the position the US is in, in regards to the global economy is extremely thought provoking [1].

Seeing as how Trump appointed the author into his political circle though could be evidence this is the ultimate goal.

The paper is quite lengthy, however, in the beginning Stephen explains this idea of the Triffin Dilemma. A country that acts as the worlds reserve currency and thus creates enormous demand for their currency for things outside of goods are at a disadvantage that exasperate their trade deficit. This is implicit for a countries currency where most global trade is settled in their dollars, not to mention the benefits of holding the world reserve currency as a value store or investment.

I've wondered since the tarifs were announced how much impact they can actually have, but besides that point what is a reserve currency country to do? Give up their reserve currency status? There are significant downsides to that as well...

[1] https://www.hudsonbaycapital.com/documents/FG/hudsonbay/rese...
dev-ns8
·11 bulan yang lalu·discuss
Well isn't that the whole point? At a fundamental level, investment profits are a payment for the risk you take. No risk equals no profit. There are "safe" investments currently. You can get paid 4% a year roughly to hold treasuries right now. Considered a "risk free" investment (Which sure, maybe the merits can be argued).

But at the end of the day the only way to profit from an investment is taking some risk. It all comes down to pricing that risk.
dev-ns8
·12 bulan yang lalu·discuss
Does this mean it's impossible in Zig to do strictly Stack related recursion and just by the mere inclusion of a recursive function your implicitly getting heap allocations alongside?
dev-ns8
·tahun lalu·discuss
What is the value proposition for these form libraries? Is it scale? Is it the custom builder? How complex are people's HTML forms these days from a UX perspective?

I was browsing the code, and noticed this forms library was using Supabase, presumably a paid service if this OSS library takes off. I just can't seem to grasp why a custom form building library needs a 3rd party, managed Database included. Scale maybe?

These are genuine questions as I'm woefully unaware of the state of HTML forms / Frontend in 2025
dev-ns8
·tahun lalu·discuss
Super interesting project! I have zero experience writing Postgres extensions, but I was browsing a blog post about an extension the other day. I was curious what ones workflow looked like while developing a PG extension. From the little I read, it looked like you would have to recompile postgres, including your extension, then enable it just to run it. Seems like a very long feedback loop. Was I missing something?
dev-ns8
·tahun lalu·discuss
Is there a DBMS or storage engine intended for a DBMS that does bypass the filesystem altogether? I'm not aware of any, but at the same time I don't have a full grasp of all the storage engines offered.

It almost seems like a ridiculous idea to me for a database component author to want to write there own filesystem instead of improving their DB feature set. I hear the gripes in this thread about filesystems, but they almost sound service level user issues, not deeper technical issues. What I mean by that, is the I/O strategies I've seen from the few open source storage engines i've looked at don't at all seem hindered by the filesystem abstractions that are currently offered. I don't know what a DBMS has to gain from different filesystem abstractions.
dev-ns8
·tahun lalu·discuss
Scrolling behavior is one of my biggest gripes with tmux. I've not done enough digging on terminal emulators and multiplexers to know why this is.

Is this an inherent limitation of multiplexers or does it stem from a choice made by tmux?
dev-ns8
·tahun lalu·discuss
I have been wrestling with having to enter scroll mode for so long now. It's so infuriating. It works without configurations on iTerm, but does not work on a single other terminal emulator I've tried.

I just tried your config setting in Ghostty and still, when I use my mouse it scrolls through zsh history, not the screen
dev-ns8
·tahun lalu·discuss
Being an advanced scuba diver is absolutely no indication of one’s ability to freedive. You Absolutly can not compare the two besides both taking place underwater.

On top of that, even if this guide was a Divemaster which is far from guaranteed given the other safety failings from this company, being an advanced Divemaster does not equate to one’s ability to cave dive. Survivors state the lack of lighting in the boat and so I’m assuming he would have had to navigate the boat in complete dark under water. So while not exactly cave diving, it’s equatable. An activity that’s insanely dangerous to anyone, even Divemasters that don’t have cavern or cave experience.

There’s a reason there’s a grim reaper sign at the entrance of caves in popular dive locations.
dev-ns8
·2 tahun yang lalu·discuss
This is exactly what us hunters do year after year, time and time again. Drive for hours, hike for miles. Gathering what information we can. Then at some point we have to make assumptions and commit to some scenario in hopes it pans out the way you assume.

A tremendous amount of time and effort is spent with it all riding on a few, hopefully, well placed assumptions. Sometimes it works out, sometimes it doesn't. Usually your acquaintances only hear about the times the hunt works out. Same with this. We only hear about it, because it worked out for the hunter
dev-ns8
·7 tahun yang lalu·discuss
I think you could argue that this very battle was lost far before the 90s... Advertisers and marketers have been exploiting and targeting the mediums in which most consumers paid their attention too long before the Internet was around. Inevitably the Internet was going to have ads seep in because it garnered the majority of consumer attention