Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
msclrhd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
msclrhd
7y ago
From the 05:37 summary: ----- * There are 600,000 Thomas Cook travellers who have been left stuck overseas. * More than 150,000 of those are Britons. -----
32.
▲
by
msclrhd
7y ago
Would it be possible on multithreaded architectures to have a thread listening for the response, then setting a flag in /proc or somewhere else to indicate that the part is now active? That way, init code that does not depend on that d
33.
▲
by
msclrhd
7y ago
Voicing s as /z/ is widely variational. For example, I voice the s in "us", and "Muslim", while others don't. While I don't voice the s in Australia (/ɒ.ˈstreɪ̯.li.jə/ ~ /ə.ˈstreɪ̯.li.j
34.
▲
by
msclrhd
7y ago
It will depend on the allocation method. For example, you could use a pooled allocator that allocates a contiguous array of list items in a block, then use those in order as required. That would help with cached locality. IIRC, the Borland
35.
▲
by
msclrhd
7y ago
I get this a lot when searching for exception messages, or for information on how to implement something. It is getting increasingly harder to find the signal in the noise.
36.
▲
by
msclrhd
7y ago
I pronounce it /r@N/ -- i.e. like 'ring' but with the 'a' in comma, or the o in button. Although if it was a Rng formed by a pseudo-random sequence, then R-N-G would be apt ;).
37.
▲
by
msclrhd
7y ago
4x8-bit values in a 32-bit value? SIMD does this to perform an operation on 4 8-bit values in a single 32-bit register. There are other configurations, IIRC. https://en.wikipedia.org/wiki/SIMD#Software
38.
▲
by
msclrhd
7y ago
Mock things like database access, or better yet pass the database connection via an interface and create a test version of the database access so you can create a database-like thing for your tests (e.g. an in-memory database). If you are d
39.
▲
by
msclrhd
7y ago
When implementing lexers and parsers for language specifications, I have taken the approach of testing each token (keyword, number, etc.) for the lexer for each EBNF symbol. This repeats tests for common keywords and other constructions, bu
40.
▲
by
msclrhd
7y ago
How about SHITEMID in the shlwapi DLL? That's supposed to be SH-ITEM-ID.
41.
▲
by
msclrhd
7y ago
I've personally found tests to be invaluable. Yes, they take longer to write than just writing the initial code, but they help save time on testing bugs in the future and ensuring that the code you have written does not regress, especi
42.
▲
by
msclrhd
8y ago
Because the ERG ("European Research Group", including MPs like Jacob Rees-Mogg) pushed a UK ammendment to include the March 29th leaving date into UK law, MPs will need to revoke that to make it possible to retract Article 50. It
43.
▲
by
msclrhd
8y ago
The UK had trade deals with various countries (including those within the EU) as part of being a member of the EU. It has also built up a lot of infrastructure on the facilitated access to the EU this gave. This covers things like: 1. just
44.
▲
by
msclrhd
8y ago
He mentioned that somewhere. It might have been in the script books, and possibly the usenet archives. You can see that in similarities with various characters -- Lyta Alexander/Talia Winters, Jeffrey Sinclair/John Sheridan, Cathe
45.
▲
by
msclrhd
8y ago
With Shor's algorithm, the quantum part of the algorithm comes down to finding the period of 'a mod N' where N is the prime number you have, and a is a number less than N that is not a factor of N. Here, the period is the sma
46.
▲
by
msclrhd
8y ago
It's not that they can execute a computation faster in the traditional sense. It is that you can exploit the quantum behaviour in some types of computation (e.g. factoring primes) to make the answer more probable, and thus more likely
47.
▲
by
msclrhd
8y ago
blackpenredpen (math): https://www.youtube.com/user/blackpenredpen mathologer (math, rubix cubes): https://www.youtube.com/channel/UC1_uAIS3r8Vu6JjXWvastJg Welch Labs (math): https://ww
48.
▲
by
msclrhd
14y ago
Qt/KDE have their issues as well. Both Qt and KDFE have their own versions of each object (e.g. QAction vs KAction). This means you have two choices when writing an application in Qt -- Qt only or KDE-based. The Qt stack does not have suppo