Readit News logoReadit News
wmu commented on Accelerated SQL for JSON with AVX512 (Golang)   github.com/SnellerInc/sne... · Posted by u/wmu
wmu · 3 years ago
Disclaimer: I'm one of the authors of sneller core. We have been working on this project for more than a year. It's has got neat AVX512-centered architecture and many neat tricks inside.
wmu commented on Yes Hello   yeshello.org/... · Posted by u/indigodaddy
wmu · 4 years ago
There are many scary things in the world. But the scariest is the line "Hi, I have a quick question". :)
wmu commented on “Fast Kernel Headers” Tree -v1: Eliminate the Linux Kernel's “Dependency Hell”   lwn.net/ml/linux-kernel/Y... · Posted by u/nnx
kzrdude · 4 years ago
It's definitely going to be merged. Of course not in the RFC version, but Molnar didn't work on this for a year in three revisions for it to be thrown away.
wmu · 4 years ago
It was already said by the author, that approx ~70% of patches can be applied independently in various part of the source tree. The rest has to be synchronised.
wmu commented on Google no longer producing high quality search results in significant categories   twitter.com/mwseibel/stat... · Posted by u/lando2319
wmu · 4 years ago
DuckDuckGo is also not good. Last week I switched to Bing and its results are surprisingly good.
wmu commented on You can't copy code with memcpy   devblogs.microsoft.com/ol... · Posted by u/hyperrail
wmu · 4 years ago
- It looks like a virus... - But it's the antivirus!

:)

wmu commented on Bit Test and Reset vs. Compilers   0x80.pl/notesen/2021-12-2... · Posted by u/gbrown_
tzs · 4 years ago
I took that into account, although it may not have been clear because I tried to describe it in words rather than code.

What I was suggesting was something like this (in pseudocode):

  int previous_leftmost = 64;
  while (mask != 0) {
    leftmost = find_leftmost(mask);
    mask ^= 1u << leftmost;
    while (--previous_leftmost > leftmost)
      func_false(previous_leftmost);
    func_true(leftmost);
  }

wmu · 4 years ago
Thanks, that's a really elegant approach.
wmu commented on Bit Test and Reset vs. Compilers   0x80.pl/notesen/2021-12-2... · Posted by u/gbrown_
tzs · 4 years ago
Most architectures seem to have an instruction for finding the leftmost set bit in a word [1] and most major C/C++ compilers/libraries have a function for it [2].

I wonder how using that would compare?

You'd find the leftmost bit, invoke the func_true for that, and clear the leftmost bit.

Then loop finding the leftmost bit, invoking the func_false for the bits between the current leftmost bit and the previous leftmost bit, func_true for the leftmost bit, and then clear that bit.

I wouldn't expect it to be dramatically different, but it is trading test and clear on the off bits and a conditional branch off of the result for a loop calling func_false a predetermined number of times. One of those options might be a little faster than the other.

[1] https://en.wikipedia.org/wiki/Find_first_set#Hardware_suppor...

[2] https://en.wikipedia.org/wiki/Find_first_set#Tool_and_librar...

wmu · 4 years ago
Author here. I cannot use BSR, because have to execute code for all bits, regardless their value. The range is: the last bit to the first with value 1. It's a non-obvious iteration schema. :)
wmu commented on English has been my pain for 15 years (2013)   antirez.com/news/61... · Posted by u/Tomte
kuboble · 4 years ago
In continental Europe I have often been in a room with people from 10 different countries say Germany, France, Italy, Russia, Poland, India, China, Korea, England. Everyone could understand each other's broken English with the exception that half of the people couldn't understand English guy. What always puzzle me is the fact that the English doesn't consider that the room language isn't their mother tongue and they should also try to speak this universal dialect that everyone understands.
wmu · 4 years ago
> In continental Europe I have often been in a room with people from 10 different countries say Germany, France, Italy, Russia, Poland, India, China, Korea, England. Everyone could understand each other's broken English with the exception that half of the people couldn't understand English guy.

The problem is that most people are not exposed to real-life English. It's either quite artificial language during classes or well spoken lines in movies. Words are spoken slower and clearer. Native speakers speak fast, use linking, colloquial language, multitude of idioms, phrasal verbs, and tons of stuff never ever touched during classes.

wmu commented on Ask HN: How do you track your billable working hours?    · Posted by u/kshivendu
wmu · 4 years ago
I use my own, simple CLI tool* (not only to track working hours, but also to track open source or hobby activiets). For many years I used Toggl, which is great and powerful - I just needed something that works offline.

[*] https://github.com/WojciechMula/timetracker

u/wmu

KarmaCake day293September 20, 2014
About
I'm a programmer, here is my website http://0x80.pl
View Original