54 karma · joined Dec 11, 2019 (6y ago) · 47 submissions
comment 6mo ago · link · parent
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...
comment 7mo ago · link · parent
The null pointer in place of the operand here just seemed like a really good quirk to point out
comment 7mo ago · link · parent
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?comment 8mo ago · link · parent
comment 9mo ago · link · parent
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).
comment 1y ago · link · parent
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...
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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
comment 1y ago · link · parent
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
I just tried your config setting in Ghostty and still, when I use my mouse it scrolls through zsh history, not the screen
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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
comment 2y ago · link · parent
https://www.amazon.com/When-Genius-Failed-Long-Term-Manageme...
22.
Stealthily Introducing Vulnerabilities in Open-Source via Hypocrite Commits [pdf](linuxreviews.org ↗)
1 points · by dev-ns8 · 2y ago · discuss
23.
Feasibility of Stealthily Introducing Vulnerabilities in Open-Source [pdf](linuxreviews.org ↗)
2 points · by dev-ns8 · 2y ago · 1 comment
comment 3y ago · link · parent
Is it waiting for execution to return to the controller method and polling the stack trace from there?
comment 5y ago · link · parent
According to your second source, there was $14.5B worth of shorted shares on 1/14/2020 and the closing price for $TSLA on that day was $107.58.
According to the source below [1], as of 11/15/2020 there was $27.19B worth of short shares. Closing price 11/16 was $408.09
Shares shorted 1/14/2020: 14.5B / 107.58 = 134.78 Million Shares
Shares shorted 11/16/2020: 27.19B / 408.09 = 66.62 Million Shares
According to TSLA July 2020 10Q they had 186M shares outstanding [2] so while not the most accurate when comparing a 9 month change in Shorted shares, we can estimate in the neighborhood of 1/3rd the shares on the market were covered by short sellers.
[1] https://www.marketbeat.com/stocks/NASDAQ/TSLA/short-interest... [2]https://www.sec.gov/Archives/edgar/data//1318605/00015645902...