Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ChrisSD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
74 ms
·
751.
▲
by
ChrisSD
7y ago
Does every org have their own C string library or does it just feel like it?
752.
▲
by
ChrisSD
7y ago
Exposed to the browser doesn't have to mean it's exposed to websites. The browser has access to all sorts of system settings that websites aren't allowed to view. Although admittedly it's hard to disguise scrollbar behav
753.
▲
by
ChrisSD
7y ago
> On Windows 10, a similar preference exists in Settings → Display → Simplify and personalize Windows. Unfortunately even with this preference checked, it had no effect on scrollbar behavior in Firefox, Chrome, in Internet Explorer and E
754.
▲
by
ChrisSD
7y ago
So the bounds check is: queue.bufs_in_use[rx_index] If so the bounds check could possibly be safely eliminated by the programmer because I think `wrap_ring` ensures that rx_index will always be in bounds?
755.
▲
by
ChrisSD
7y ago
In other words, a lack of Vitamin D reduces bone strength but getting more than necessary doesn't increase bone strength any further. Makes sense. This is often how the body works. You should get enough of <nutrient> but having m
756.
▲
by
ChrisSD
7y ago
In philosophy this is the rule not the exception. And reading the sources is also valuable, as he himself pointed out. Especially now that we have the web so you don't even need to visit a well stocked library to see how accurately he
757.
▲
by
ChrisSD
7y ago
Oh definitely! But I'd be stretching the "100 years ago" limitation if I included it.
758.
▲
by
ChrisSD
7y ago
Since many other people have mentioned ancient essays I like, I'll go for something more "modern". Some of Bertrand Russell's earlier works are well worth a read even though they're obviously dated. * The Problems o
759.
▲
by
ChrisSD
7y ago
It would be nice if scientists and philosophers worked closer together. These days a scientist's understanding of the scientific method is usually a bowdlerized version of Karl Popper's work, as passed down from one scientist to a
760.
▲
by
ChrisSD
7y ago
The question title is ambiguous but the question tags include both HTML and XHTML. Self-closing `<element />` is an XML-ism which in HTML is treated the same as `<element>` but it was still fashionable to use them in HTML w
761.
▲
by
ChrisSD
7y ago
It depends what you mean by "validating email addresses". A regex that tests if a string looks like a valid email address is simple. Forget the ancient RFCs, a real world email address is in the form of `mailbox@domainname`. Which
762.
▲
by
ChrisSD
7y ago
The answer was made in '09. StackOverflow was more accepting of some humour at the time. And it is making a valid point: regex isn't the right tool for this job.
763.
▲
by
ChrisSD
7y ago
I think we have different definitions of human readable documentation. I'd find normal code, with or without appropriate comments, far more readable than a mess of regex symbols.
764.
▲
by
ChrisSD
7y ago
I know I'm going against the spirit of this hypothetical but the trouble with good technical documentation is it can quickly become bad technical documentation. It needs constant maintenance over the long term. Every patch that's
765.
▲
by
ChrisSD
7y ago
Yes, checking to see if a regular expression is valid is useful but that wasn't what I was asking. Why specifically would you want to use a regular expression for this job?
766.
▲
by
ChrisSD
7y ago
Why would you want a regular expression to detect a valid regular expression?
767.
▲
by
ChrisSD
7y ago
I mean you can very easily add MIT code in a GPL licensed project because MIT is more permissive. However adding GPL code to an MIT licensed project means you now have to comply with GPL's more restrictive "list of permissions&quo
768.
▲
by
ChrisSD
7y ago
It doesn't help that the Win32 layer on top of the NT kernel is a mess.
769.
▲
by
ChrisSD
7y ago
According to Stallman, MIT is compatible with GPL but the reverse isn't true. You can freely use MIT code (including linking) in a GPL project so long as the source is available. In Rust most code is dual licensed as MIT or Apache 2. Y
770.
▲
by
ChrisSD
7y ago
The thing that surprises people is not that Stallman went to Microsoft but that Microsoft invited him to talk. Back in the day Bill Gates would make signs to ward against evil if Richard "communist cancer" Stallman was anywhere ne
771.
▲
by
ChrisSD
7y ago
An English language article: https://www.zdnet.com/article/free-software-advocate-richard... Also Pedro Paulo explained what the content of the talk was: > Mostly standard talk. Importance of free software, GPL v3,
772.
▲
by
ChrisSD
7y ago
bycrypt has a limit of 72 bytes (not characters) and possibly less depending on the specific implementation. Theoretically this could limit you to only 18 characters if your password is utf-8 encoded emoji (4 bytes per character). This can
773.
▲
by
ChrisSD
7y ago
Russinovich quite literally wrote the book on the internals of Windows.
774.
▲
by
ChrisSD
7y ago
> As I have said previously, memory is like a huge array with (say) 0xffffffff elements. A pointer in C is an index to this array. Thus when a C pointer is 0xefffe034, it points to the 0xefffe035th element in the memory array (memory bei
775.
▲
by
ChrisSD
7y ago
The way I heard it was that Cargo was intentionally avoiding being a complete build system. The idea being that Make et al would still be used when necessary so build.rs (and cargo in general) could be free to concentrate on managing the Ru
776.
▲
by
ChrisSD
7y ago
In a way Judy arrays illustrate the difference between C's memory model (flat memory) and real hardware (with cache lines).
777.
▲
by
ChrisSD
7y ago
Hmm... I'm not so sure the ideas themselves are unfamiliar. Any one who has used C or C++ has to deal with lifetimes (or at least should) and things like iterators are a very common pattern nowadays. What Rust does differently is makin
778.
▲
by
ChrisSD
7y ago
Maybe I'm missing something but what's wrong with rounding floats this way?
779.
▲
by
ChrisSD
7y ago
People on HN keep reinventing COM. I swear every other week we have discussions like the above in at least one thread.
780.
▲
by
ChrisSD
7y ago
What I want to know is why the hell did Google ever think this was a good idea? I hardly even use Google Calendar and yet I had a spam notification about an "iPhone X" delivered direct to me. The most amazing thing about this is o
More ›