Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chlorion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
151.
▲
by
chlorion
3y ago
Yes, being in my room and talking on IRC is exactly equal to driving 150mph on the highway. I'm glad we've cleared that up.
152.
▲
by
chlorion
3y ago
When I was 17 years old, I was able to access hard drugs like amphetamines and opiates more easily than alcohol. I could buy whatever substances I wanted, no questions asked, just by knowing the right places to look. To buy alcohol, I neede
153.
▲
by
chlorion
3y ago
I have used amphetamines extremely heavily for many years and I have never at any time been violent, with or without substances. I also didn't steal, or scam people, or otherwise harm anyone. When I did meth, I stayed at home and talke
154.
▲
by
chlorion
3y ago
I'm not a Linux kernel dev but I think this is true! Not sure what's up with the downvotes. You can create a process/thread chimera with certain system calls, and get something that is in-between a thread and process if you w
155.
▲
by
chlorion
3y ago
You have to be much more careful about what you modify when using multithreading, so I'm not sure what you mean by that. A lot of people here mention that sharing data is much easier with multithreading, but doing this without races
156.
▲
by
chlorion
3y ago
I don't really buy this argument at all. There is no technical reason why quicklisp couldn't use the systems libcurl and openssl when its available and fallback to fetching with its portable http implementation when they aren'
157.
▲
by
chlorion
3y ago
I don't think many languages other than rust and c++ use monomorphization extremely heavily. Pretty much everything in rust is going to be using traits and c++ uses templates for most things as well. Every time you use a trait or a tem
158.
▲
by
chlorion
3y ago
I have some cons! Last time I checked on it, QuickLisp doesn't support fetching packages over anything except for plain http, with no encryption and no verification mechanism in place to detect files that may have been tampered with du
159.
▲
by
chlorion
3y ago
The word "web" is actually defined as "a complex system of interconnected elements." There is nothing to argue. In spoken human language we have this concept called connotation, "web" being associated with http
160.
▲
by
chlorion
3y ago
I disagree with this a lot. I think most programmers have been trained to think that C like syntax and semantics is fundamental to programming languages, as if languages are just inherently C like, and that C is just what programming is, bu
161.
▲
by
chlorion
3y ago
It's really easy to create new "system" users with systemd-sysusers too, if you need the uid to be persistent! You just drop a small text file (often a single line) into /etc/sysusers.d/ with the information ab
162.
▲
by
chlorion
3y ago
Nobody allows password login to root accounts with ssh either, and that's effectively what using passwords is based on your analogy. There's no reason you can't password protect your passkey, or even use a TPM or yubikey also
163.
▲
by
chlorion
3y ago
If the device is exploited, they can also install a keylogger and steal regular passwords. I think this would be where hardware based authentication via TPM or similar would be useful. This would allow the device to be taken over and the pr
164.
▲
by
chlorion
3y ago
printf and similar stdio string formatting functions have caused a non-trivial amount of security exploits. If the compiler can statically check that your format string is valid and type checks, you can prevent this entire class of exploits
165.
▲
by
chlorion
3y ago
>If a line of code doesn't look like a function call, it's not calling anything. In C, if you for example write past the bounds of an array or otherwise do something that causes UB, there is no guarantee that the code you wrote
166.
▲
by
chlorion
3y ago
I'm not sure what you mean by closures being cumbersome in rust. Rust uses closures very heavily, for things like iterators, spawning threads, async tasks, and lots of other things. I've never felt them to be cumbersome at all. Ac
167.
▲
by
chlorion
3y ago
With something like the slotmap, you store a generation counter, so you can't accidentally use something that has been freed and recreated. It also checks that the slot you are trying to get is occupied, and if it's not it won
168.
▲
by
chlorion
3y ago
I think many people don't realize that the git integrated shell prompts for example are not safe to use in untrusted git repos. Lots of editors will also query git repo information for displaying information to the user, and may do thi
169.
▲
by
chlorion
3y ago
Rust does actually do the many of the same optimizations, and in unsafe rust this can and does lead to UB. An example of this, is aliasing mutable references. Rust has been designed to assume that two mutable refs will never alias, if you
170.
▲
by
chlorion
3y ago
This is from a maintainer of wlroots: >Maintainer of sway and wlroots here. The Nvidia proprietary driver does not support sway, not the other way around. >Their standard, EGLStreams, is only implemented by their proprietary drivers,
171.
▲
by
chlorion
3y ago
There is work being done to add user sessions to openrc by some person. It seems pretty cool so far! I'm not totally sure whether openrc will merge this or not, but I would definitely like to see this be added. edit: They actually seem
172.
▲
by
chlorion
3y ago
GNU cat will use the copy_file_range syscall when possible! copy_file_range allows a user land program to copy data between two files without doing any user space work. Instead of reading data into a buffer and writing it back out to the de
173.
▲
by
chlorion
3y ago
I had the same experience. I remember going to a friends house and using their computer, and it took several minutes to boot, and even after it reached the desktop it still took more time for things to become responsive. Opening any program
174.
▲
by
chlorion
3y ago
Affine in this case is referring to not being able to use values after they have been moved. When I say not able to use, I mean that it's a compile time error to attempt to use them. C++ does not restrict you from using things after th
175.
▲
by
chlorion
3y ago
I have implemented my own slotmap crate for a lisp interpreter that uses no unsafe code and provides exactly the same features as the "standard" slotmap crate. There is nothing inherent to the slotmap that requires unsafe code! It
176.
▲
by
chlorion
3y ago
That was the point I was attempting to get across. Single core computers multitask fine, which proves that concurrency is not the same thing as parallelism. Even in modern times, we have something like the first generation raspberry pi zero
177.
▲
by
chlorion
3y ago
How exactly would allowing a third party operating system on the device negatively impact your user experience? Can you explain why you believe that allowing access to the hardware, only after explicitly and deliberately enabling access v
178.
▲
by
chlorion
3y ago
Yes, concurrency on a single core CPU is simply not possible. That's why multitasking OS's didn't exist until multicore CPUs became a thing. If only these "Gophers" knew anything about computing history!
179.
▲
by
chlorion
3y ago
The claims they are making are extremely bold. On the front page of their website, they claim to have full compatibility with python code, an ownership model and a borrow checker, and being as fast or faster than C++. These are just some o
180.
▲
by
chlorion
3y ago
Rust is a stable language. Stable features will never be removed or broken. If you don't use unstable features, and aren't relying on something that is unsound, your code will continue to compile. If it doesn't, this is consi
More ›