mmaldacker | 7 years ago | on: Simulating blobs of fluid
mmaldacker's comments
mmaldacker | 9 years ago | on: When Haskell is Faster than C (2013)
2. The author talks about the importance of reducing cache misses due to pointer indirection and then proceeds by implementing a character buffer as a linked list of small buffers...
3. The C version reads and writes character one by one, this can be greatly improved by reading/writing bigger chunks at once. Actually, the author points out this optimisation but says "that would require significant changes to the code;". So the author spent time optimising the Haskell version, but spending time optimising the C version is too much work? And then arrives at the conclusion Haskell is faster?
4. Commenters on the author's blog cannot reproduce the results...
mmaldacker | 10 years ago | on: The Dying Art of Mental Math Tricks
mmaldacker | 10 years ago | on: Why the Netherlands Is Telling Its Tech Startups to Leave the Country
If you don't count the flemish in Belgium (about 6-7 million people). In addition, (almost) everybody speaks english.
> One of the hardships Dutch startups face, says Kroes, is overcoming the natural Dutch tendency to be humble.
Really? This is not the impression I get from the Dutch. Belgians love to make fun of Dutch people for being arrogant. There is also a very strong culture of entrepreneurship in the Netherlands, starting and having a successful company is highly regarded. And there are already a few successful startups, like ticketswap which recently opened in several other countries.
mmaldacker | 10 years ago | on: Deutsche Bank Ignored Its CDS Problems Until They Went Away
mmaldacker | 11 years ago | on: Can C++ become your new scripting language?
int word_count(const char *const filename)
{
std::ifstream file{filename};
return std::distance(std::istream_iterator<std::string>{file}, {});
}mmaldacker | 11 years ago | on: Japan maglev train breaks world speed record again
mmaldacker | 11 years ago | on: Japan maglev train breaks world speed record again
This still exists, for example Tegel airport in Berlin. Also, in the 70s there was waaaaaay less traffic in airports so it is simply not a fair comparison.
>Sadly, I bet the way we'll end up equalizing this will be that somebody will eventually bomb a TGV and we'll have to start doing the two hour confiscate-your-kids'-apple-juice routine at the train station too.
mmaldacker | 11 years ago | on: Japan maglev train breaks world speed record again
After the reunification, they only had to reconnect the lines that were separated by the wall. Only a few places needed some extensive work. You probably meant WW2 where most lines were destroyed. Note that Berlin was also one of the first cities in the world to have a metro system.
>No one is keeping you from remaining in Germany, are they? I can guarantee you they will approve your work permit and you can become a resident and eventual citizen.
The horror!
mmaldacker | 11 years ago | on: Japan maglev train breaks world speed record again
mmaldacker | 11 years ago | on: Why the World Is Obsessed with Midcentury Modern Design
mmaldacker | 11 years ago | on: Linus Torvalds on C++ (2007)
are you talking about the implicit conversion operator or operator overloading in C++?
For the former, it has been vastly improved in C++11 with the addition of explicit conversion operator. For the later, some very important capabilities of C++ rely on operator overloading namely the assignment operator (copy/move assignment) and the function operator (allows what C++ calls functors). Another useful thing with operator overloading is allowing the creation of generic functions that work on existing types (int, float, ..) and user defined types, for example std::accumulate.
mmaldacker | 11 years ago | on: When your child speaks a language you don’t
mmaldacker | 11 years ago | on: Why did I wake up just before my alarm clock went off?
mmaldacker | 11 years ago | on: Quake on an oscilloscope
mmaldacker | 11 years ago | on: The Nth Fibonacci Number in O(log N)
mmaldacker | 11 years ago | on: 15-line hash table in C
mmaldacker | 11 years ago | on: Hackers with Apparent Investment Banking Background Target Biotech
mmaldacker | 11 years ago | on: Perfect forwarding and universal references in C++
mmaldacker | 11 years ago | on: Please grow your buffers exponentially
It should work on macOS/iOS via MoltenVK, but I haven't tested it extensively.
It's a hybrid simulation with particles for the advection and a grid to ensure incompressibility.