Readit News logoReadit News
blux commented on US Administration announces 34% tariffs on China, 20% on EU   bbc.com/news/live/c1dr7vy... · Posted by u/belter
jbverschoor · 5 months ago
The whole table doesn't make sense. We (NL/EU) don't charge the US 39% to import . Apparently orange guy (not the Dutch) doesn't understand VAT rates.

Car? max 4.5 + 21% VAT = 25%. But it simply doesn't matter bc we don't want their cars.. Except for thee Dodge RAM, which can be converted to a tax efficient company car (crazy)..

What amazes me even more is that Elon doesn't seems to understand it either.

blux · 5 months ago
Seems he is using trade deficit percentages in his chart instead of tariff percentages ... :/
blux commented on F-strings for C++26 proposal [pdf]   open-std.org/jtc1/sc22/wg... · Posted by u/HeliumHydride
kringlezz · 7 months ago
Move semantics is only needed because C++ introduced implicit copies (copy constructor) and they of course fucked it up my making them non-destructive so they aren't even 'zero cost'.

Constexpr and consteval are hacks that 1) should have just been the default, and 2) shouldn't even be on the function definition, it should instead have been a keyword on the usage site: (and just use const)

  int f() { ... } // any old regular function
  const int x = f(); // this is always get evaluated at compile time, (or if it can't, then fail to compile)
  int y = f(); // this is evaulated at runtime
That would be the sane way to do compile time functions.

blux · 7 months ago
Could have been if backwards compatibility was not a thing indeed.

Move constructors are not needed, they don't solve a 'problem', but improve on previous semantics.

blux commented on F-strings for C++26 proposal [pdf]   open-std.org/jtc1/sc22/wg... · Posted by u/HeliumHydride
serbuvlad · 7 months ago
> There are two other proposals to fix these problems.

Most new features of C++ are introduced to fix problems created by previously new features added to C++.

blux · 7 months ago
This is becoming such a tiresome opinion. How are concepts fixing a problem created by previous features to the langue? What about ranges? Auto? Move semantics? Coroutines? Constexpr? Consteval? It is time for this narrative to stop.
blux commented on Nanoimprint Lithography Aims to Take on EUV   spectrum.ieee.org/nanoimp... · Posted by u/pseudolus
sva_ · 8 months ago
> For instance, compared to an EUV system employing a 250-watt light source, Canon estimates NIL consumes just one-tenth the energy.

I'm not an expert on this but feel like a 250w light is not the major driver of cost in EUV? Or am I misunderstanding this?

blux · 8 months ago
AFAIK, 250W is the net energy of light arriving at the wafer after it has reflected off of many mirrors, with a very inefficient process to generate light from the tin plasma on top of that.
blux commented on C++ String Conversion: Exploring std:from_chars in C++17 to C++26   cppstories.com/2018/12/fr... · Posted by u/jandeboevrie
userbinator · 10 months ago
Care to explain and show the details?

"Extraordinary claims require extraordinary evidence."

blux · 10 months ago
I wrote this library once; https://github.com/ton/fast_int.

Removed `std::atoi` from the benchmarks since it was performing so poorly; not a contender. Should be easy to verify.

Rough results (last column is #iterations):

  BM_fast_int<std::int64_t>/10                  1961 ns         1958 ns       355081
  BM_fast_int<std::int64_t>/100                 2973 ns         2969 ns       233953
  BM_fast_int<std::int64_t>/1000                3636 ns         3631 ns       186585
  BM_fast_int<std::int64_t>/10000               4314 ns         4309 ns       161831
  BM_fast_int<std::int64_t>/100000              5184 ns         5179 ns       136308
  BM_fast_int<std::int64_t>/1000000             5867 ns         5859 ns       119398
  BM_fast_int_swar<std::int64_t>/10             2235 ns         2232 ns       316949
  BM_fast_int_swar<std::int64_t>/100            3446 ns         3441 ns       206437
  BM_fast_int_swar<std::int64_t>/1000           3561 ns         3556 ns       197795
  BM_fast_int_swar<std::int64_t>/10000          3650 ns         3646 ns       188613
  BM_fast_int_swar<std::int64_t>/100000         4248 ns         4243 ns       165313
  BM_fast_int_swar<std::int64_t>/1000000        4979 ns         4973 ns       140722
  BM_atoi<std::int64_t>/10                     10248 ns        10234 ns        69021
  BM_atoi<std::int64_t>/100                    10996 ns        10985 ns        63810
  BM_atoi<std::int64_t>/1000                   12238 ns        12225 ns        56556
  BM_atoi<std::int64_t>/10000                  13606 ns        13589 ns        51645
  BM_atoi<std::int64_t>/100000                 14984 ns        14964 ns        47046
  BM_atoi<std::int64_t>/1000000                16226 ns        16206 ns        43279
  BM_from_chars<std::int64_t>/10                2162 ns         2160 ns       302880
  BM_from_chars<std::int64_t>/100               2410 ns         2407 ns       282778
  BM_from_chars<std::int64_t>/1000              3309 ns         3306 ns       208070
  BM_from_chars<std::int64_t>/10000             5034 ns         5028 ns       100000
  BM_from_chars<std::int64_t>/100000            6282 ns         6275 ns       107023
  BM_from_chars<std::int64_t>/1000000           7267 ns         7259 ns        96114
  BM_fast_float<std::int64_t>/10                2670 ns         2666 ns       262721
  BM_fast_float<std::int64_t>/100               3547 ns         3542 ns       196704
  BM_fast_float<std::int64_t>/1000              4643 ns         4638 ns       154391
  BM_fast_float<std::int64_t>/10000             5056 ns         5050 ns       132722
  BM_fast_float<std::int64_t>/100000            6207 ns         6200 ns       111565
  BM_fast_float<std::int64_t>/1000000           7113 ns         7105 ns        98847

blux commented on C++ String Conversion: Exploring std:from_chars in C++17 to C++26   cppstories.com/2018/12/fr... · Posted by u/jandeboevrie
userbinator · 10 months ago
Wasn’t the old stuff good enough? Why do we need new methods? In short: because from_chars is low-level, and offers the best possible performance.

That sounds like marketing BS, especially when most likely these functions just call into or are implemented nearly identically to the old C functions which are already going to "offers the best possible performance".

I did some benchmarks, and the new routines are blazing fast![...]around 4.5x faster than stoi, 2.2x faster than atoi and almost 50x faster than istringstream

Are you sure that wasn't because the compiler decided to optimise away the function directly? I can believe it being faster than istringstream, since that has a ton of additional overhead.

After all, the source is here if you want to look into the horse's mouth:

https://raw.githubusercontent.com/gcc-mirror/gcc/master/libs...

Not surprisingly, under all those layers of abstraction-hell, there's just a regular accumulation loop.

blux · 10 months ago
Did you verify their claims or are you just calling BS and that's it? The new functions are in fact much faster than their C equivalent (and yes, I did verify that).
blux commented on The GJK Algorithm: A weird and beautiful way to do a simple thing   computerwebsite.net/writi... · Posted by u/arithmoquine
blux · a year ago
I implemented GJK almost a decade ago now based on this excellent explanation from Casey: https://www.youtube.com/watch?v=Qupqu1xe7Io
blux commented on Wind River Linux   windriver.com/products/li... · Posted by u/indigodaddy
phone8675309 · 2 years ago
Their hiring process is a shitshow too.

I got contacted by a previous manager to apply.

I applied, and _tried_ to set up a first round interview.

I had email receipts and calendar invites for an interview during my lunch break on a weekday. I was ready and available and connected to the Zoom meeting and nobody showed for an hour (which was the end of the interview slot and the end of my lunch break where I had to go back to work).

I emailed them asking what was going on, nothing back for two hours until they sent me a new calendar invite for the middle of the afternoon in my workday. I told them I couldn't make it and they canceled the interview and did not respond to several emails sent to them to try and reschedule.

Second worst Linux distro interview process after Canonical.

blux · 2 years ago
Ok, I'll bite. What happened at Canonical?

u/blux

KarmaCake day365March 11, 2010View Original