Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chlorion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
301.
▲
by
chlorion
4y ago
This is a bit strange. I have Company setup to do the same thing and use it with Rust Analyzer and I have not experienced any stuttering at all! I read down a bit and it seems like someone has mentioned building with "--with json"
302.
▲
by
chlorion
4y ago
It doesn't, it's just the standard generic "C++ is complex and bad" post that people love to read so much. Every C++ related post will have at least one of these and they are always totally unrelated to anything being ta
303.
▲
by
chlorion
4y ago
There are still some things that C++ can do that Rust can't. A few of the larger and common examples would be, specialization, placement and variadic generics. At least variadic generics isn't really a performance thing, it's
304.
▲
by
chlorion
4y ago
No it doesn't do anything like that. I am not sure where this idea came from but it's totally incorrect. I have also been using the wl-clipboard program with no issues like the parent commenter. I use it for my password store, whi
305.
▲
by
chlorion
4y ago
I use ZNC over wireguard and it works fairly well! I can travel in the car with my phone connected to IRC, roam from my home WiFi to the cellular network and back without disconnecting from ZNC! It even works pretty well when cellular servi
306.
▲
by
chlorion
4y ago
I don't think it needs to become multithreaded, it just needs better support for async/event loop style concurrency! Right now we can run subprocesses without blocking anything with "make-process", but interacting with t
307.
▲
by
chlorion
4y ago
Yeah the concept of an Optional type is just too complex for other less advanced beings than yourself to understand. Having the Optional class be nullable is actually genius and makes perfect sense, they are just not bright enough to see it
308.
▲
by
chlorion
4y ago
That is irrelevant though. It sucks that Apple does this but it doesn't actually change the fact that Firefox use is at 3%.
309.
▲
by
chlorion
4y ago
This is not guaranteed behavior and should not be relied on!
310.
▲
by
chlorion
4y ago
Why do you think memcpy is normally used to copy heap memory? It's just a general bitwise copy from one location to the other. I think the confusion here is that there isn't always a literal call to memcpy for copying small types
311.
▲
by
chlorion
4y ago
I do understand what you mean, and in general I agree, but in this specific example making it faster doesn't require "optimizing" anything! If I am understanding correctly the "naive" algorithm here is the fast one,
312.
▲
by
chlorion
4y ago
I have a 500mb per month data cap on my current phone plan. This would put a huge dent in that!
313.
▲
by
chlorion
4y ago
It's not being upset over money, the point is not wanting proprietary code to include my code or code derived from mine. I don't care if people make money using GPL'd code, but I do care if they take the code and strip the li
314.
▲
by
chlorion
4y ago
This is very useful! Thanks for sharing! I've been looking for a list of semi-blessed crates like this for a long time. Before finding this and the OP's site I looked at the dependencies of rustc and cargo and considered those to
315.
▲
by
chlorion
4y ago
I do not have a specific code example, but you can use the normal X11 client interfaces to interact with the X server, which allows a lot of dangerous things such as sending events to other clients. We can imagine a rouge X11 client spawnin
316.
▲
by
chlorion
4y ago
Considering that unsafe rust basically just allows raw pointer access (see link below) which is already a thing you can do normally in C, I do not see how that's a very good argument against it honestly. As for the Option type, it is e
317.
▲
by
chlorion
4y ago
I think you may be misinterpreting my comment a bit, I did not mean that C++ was bad here, but rather a large improvement. My point was that in C++ (and others) you can completely prevent this entire class of errors by using the standard co
318.
▲
by
chlorion
4y ago
>Serious bugs doesn't care in which language the error happens This just isn't true. Buffer overflows are not possible with bounds checking. Using a language that provides containers with bounds checked access methods would hav
319.
▲
by
chlorion
4y ago
Bounds checking would have prevented this outright. Bounds checking has been standard in every language other than C since 1970, but for some reason C programmers refuse to use it, normally using arguments like "just make sure the inde
320.
▲
by
chlorion
4y ago
Here is a snippet of things that copyright is intended to cover: >the right to exclude others from making certain uses of the work: copying it, making a derivative work based on that work, distributing copies of the work to the public, a
321.
▲
by
chlorion
4y ago
Nobody wants to completely ban AI or training. You can have progress in this area and still respect people's intellectual property. Framing this as destroying progress is silly. Why can't they train on the code they own, such as W
322.
▲
by
chlorion
4y ago
It's selfish to want people to abide by the license I released my project under? That's pure nonsense.
323.
▲
by
chlorion
4y ago
FOSS license does not mean "do whatever you want". The GPL requires all derived work to also be licensed under a GPL compatible license for example.
324.
▲
by
chlorion
4y ago
I think you are mostly correct but most people don't like this explanation and choose to believe in magic or spirits or whatever instead of physical reality. For some reason the brain is "magic" and non-physical unlike other
325.
▲
by
chlorion
4y ago
Some people try to inspect code outside of a project before including it into something. Say there is a Github repo with a crate called "totally_safe_crate", and I want to use this crate in my project, but I am not sure whether I
326.
▲
by
chlorion
4y ago
Another good option is to create a new user and run everything under the new UID. Running under a new UID has less chances of accidentally leaving something exposed that can allow for sandbox escape. If you run everything from the new UID,
327.
▲
by
chlorion
4y ago
I am on Gentoo so I have some build time stats! My system has a 3900x, 32GB ram, and a fast NVME SSD for reference. The last chromium build took 1h:45m to complete. This build had LTO enabled and -j18 passed to ninja. Without LTO it would p
328.
▲
by
chlorion
4y ago
The author stated that the benchmarks run in headless mode, so I am not sure that it's SDL that's slowing it down here. Even if it is SDL slowing it down, Go FFI being slow is still a real disadvantage compared to the other langua
329.
▲
by
chlorion
4y ago
What does a GPU have to do with any of this? I think you may be a little confused about something but I am not sure what.
330.
▲
by
chlorion
4y ago
I find it very strange that you think it's not obvious that cat works with binary data. It's just a "dumb" program that reads from some files and sends it to stdout, it doesn't care what the data is! One of the inte
More ›