Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dahfizz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
811.
▲
by
dahfizz
4y ago
In this case, b is a pointer that does not point to a valid address. You can't memset(b, 0, 100), or do any of the other regular pointer things with b. It feels like you're introducing a million edge cases.
812.
▲
by
dahfizz
4y ago
Being a subsistence farmer was incredibly risky. One bad year and your whole family starves to death. People only did that because there was no alternative. As soon as the industrial revolution came, people left their "self employment&
813.
▲
by
dahfizz
4y ago
"Falsehoods programmers believe about X" articles inevitably become a discussion about niche anthropology facts. No programmer has ever cared about Lady Day when writing a program. And if they did, by definition, they would unders
814.
▲
by
dahfizz
4y ago
Except they are using an ancient, bespoke runtime. JS sucks, but V8 is an incredible piece of engineering. That is true. But they aren't using V8.
815.
▲
by
dahfizz
4y ago
You will always have to trust someone. Having more options when choosing who you trust is a good thing. Does that make sense to you?
816.
▲
by
dahfizz
4y ago
> You just replaced ISP tracking with VPN tracking. Yeah, that's the point. People have infinitely more choices for VPN providers than for ISPs. The VPN provider could be in another country. You can even run your own VPN on hosted i
817.
▲
by
dahfizz
4y ago
> DALLE is a continuation of Photoshop. Compilers didn't put programmers out of business, it just moved them one layer up. It moves artists so far "up the stack" that being an artist becomes redundant. If C-level execs cou
818.
▲
by
dahfizz
4y ago
Sorry, maybe I was not clear. Assuming you are correct, I am saying the generator should produce 10kW of power, and OP is suggesting that the generator would generator < 10kW. I'm saying the generator should keep up with the energy
819.
▲
by
dahfizz
4y ago
I clearly stated it was a crime. But it was not robbery. There are other kinds of crimes.
820.
▲
by
dahfizz
4y ago
But why include the gas engine at all if it doesn't extend your highway range? Keep your small <100 mile battery pack, skip the extra cost and weight of an engine.
821.
▲
by
dahfizz
4y ago
> The generator doesn't need to be large (and expensive) enough to be capable to drive from directly at highway speeds, but just enough to extend the range when needed. So you would need to park and let the generator slowly charge y
822.
▲
by
dahfizz
4y ago
He withdrew money from his own account. In order to do so, he coerced the bank teller at gunpoint. It's some sort of violent crime, but not robbery.
823.
▲
by
dahfizz
4y ago
>And directories, if used properly, can protect a 777 file from being changed. Could you explain how this would work?
824.
▲
by
dahfizz
4y ago
> So what? Using the "folder" mental model leads to exactly the bugs in TFA. "Oh, the root folder can only be accessed by root, so if I put a file _inside_ that folder it will be protected". Thats not how it works. &g
825.
▲
by
dahfizz
4y ago
I don't see the issue. Let's put all subtleties about Unix directories to the side. Zoom wanted to change the permissions of a file so that only root could access it. The obviously correct way to do that is to simply change the pe
826.
▲
by
dahfizz
4y ago
Yup, this is a very common misconception. In Unix, directories are not folders. Directories are literally a directory, like a phone book. It lists files and their location on disk. A directory doesn't contain any other files. Moving a
827.
▲
by
dahfizz
4y ago
Whatever library or tool you use will just call the `rename` syscall. As you would expect, rename simply renames a file. It deletes the old directory entry and creates a new one. If you're using a library or tool to do this for you, yo
828.
▲
by
dahfizz
4y ago
As a task runner, why is it better than a bash script? Being able to run tasks in parallel is like the most fundamental feature I would expect from a task runner. Being able to skip over tasks that don't need to be done is a close seco
829.
▲
by
dahfizz
4y ago
I don't understand the use case of `just`. It drops every useful feature from `make`. It doesn't look like it has parallelism or the ability to not needlessly re-run tasks. Even if `just` was installed on a standard Linux box, I d
830.
▲
by
dahfizz
4y ago
I am currently working on a no dependency, high performance FIX server written in C.
831.
▲
by
dahfizz
4y ago
Sure, shrimp and "land bugs" look similar if you squint at them. There is an obvious, massive difference though: crustaceans have meat. Most people don't just eat a crustacean whole like you would have to with "land bugs
832.
▲
by
dahfizz
4y ago
Shut up an eat your bugs. https://time.com/5942290/eat-insects-save-planet/
833.
▲
by
dahfizz
4y ago
Are you missing a 'k' or 'M' on those units? 8 cents per watt-hour is obscenely expensive. A hibernating Mac m1 would cost over a dollar an hour. Just to hibernate.
834.
▲
by
dahfizz
4y ago
They don't have nearly the same power on a federal level. But the people of Kansas do have some power, thanks to the Senate. New York has much more power in the House than Kansas. Let me turn the questions around: how would it be f
835.
▲
by
dahfizz
4y ago
The really cool thing about Federalism is that California can make it's own laws about what happens in California. On a Federal level, California has to share power with the other 49 states. California should not be able to dictate fed
836.
▲
by
dahfizz
4y ago
You're greatly exaggerating, the difference between New York and Kansas elector-per-capita is less than a factor of two. But to answer your question, yes. The people of Kansas, on a federal level, should have meaningful power. Federal
837.
▲
by
dahfizz
4y ago
The EU does exactly that with the counsel and the commission. It doesn't make sense to compare the USA as a whole to other, much smaller countries. Federalism doesn't make sense on a small scale.
838.
▲
by
dahfizz
4y ago
Why have representatives at all? Let the Tyranny of the Majority begin!
839.
▲
by
dahfizz
4y ago
Guys I just wrote a json parser in one line of code! import json
840.
▲
by
dahfizz
4y ago
You can do whatever you want. Just don't brag about your line count if all your project does is import dependencies.
More ›