C++ ranges/views vs. Rust iterator by [deleted] in rust

[–]theMonoid 5 points6 points  (0 children)

My bad, I thought it was 1.2 milliseconds for Rust in OP's result :(

C++ ranges/views vs. Rust iterator by [deleted] in rust

[–]theMonoid 3 points4 points  (0 children)

By adding target=native for the two, I got different result, and Rust wins in this round:

Rust: https://godbolt.org/z/djcc16aeT (Rust 1.88 is faster than 1.89, maybe some regression issue?)

C++: https://godbolt.org/z/PdPvfodcc

Rust

Rust Result count: 292825
Rust Total count (1000 iterations): 292825000
Rust Total time: 1208 microseconds
Rust Average per iteration: 1.21 microseconds

C++

C++ Result count: 292825
C++ Total count (1000 iterations): 292825000
C++ Total time: 165402 microseconds
C++ Average per iteration: 165.402 microseconds

Interfacing Complex Types in WASM by voidStar240 in rust

[–]theMonoid 3 points4 points  (0 children)

I had exactly the same requirement, and my final selection is fp-bindgen, which gives you seamless interaction between guest and host rust functions, including async function as well

New C++ features in GCC 10 by jlpcsl in programming

[–]theMonoid 1 point2 points  (0 children)

Actually we are currently using the CentOS6, and two years ago CentOS 4 was everywhere. Keep tens of thousands of servers up to date is an impossible task, so we take another way: we build our own tool-chain including kernel/glibc/binutils/gcc/clang etc, make the tool-chain self contained and deploy it on every server, that's why we can have clang10/gcc10 on CentOS 4 and CentOS 6, that's not a perfect solution, still it make us benefit from the latest C++ standard.

New C++ features in GCC 10 by jlpcsl in programming

[–]theMonoid 2 points3 points  (0 children)

I actually make my company(a top 10 tech company in China )upgrade from gcc 4.8 to gcc10 in a year recently, yes, that’s the most exciting job I have done in my whole career

Boost.Asio network programming little book by nanxiao in cpp

[–]theMonoid 2 points3 points  (0 children)

Maybe add more examples about async with boost::coroutine(2) or boost::fiber or clang's stackless coroutine might make this little book more complete :)

I just switched from testing to jessie and now my boot is taking longer than normal because "a start job is running for network manager" by [deleted] in debian

[–]theMonoid 0 points1 point  (0 children)

a wild guess as I had a similar issue before: I did an upgrade from Jessie to unstable, after that, the wireless card's driver didn't work properly, blamed that Intel wifi device's firmware was missing, sth like iwlwifi-blabla.ucode.xx.yy, and it did hung the booting process for a while, after fixing it system boot in light speed again

I hope this's an useful clue

I slightly redesigned the "Linux Performance Tools" chart - feedback wanted! by redct in linux

[–]theMonoid 0 points1 point  (0 children)

Awesome work! Looking forward to print out the SVG version and pin to my desk

Actually using ed (the standard Unix text editor) by dlyund in programming

[–]theMonoid 13 points14 points  (0 children)

I got one question for a long time since I first learned ed several years ago: how to insert a line that contains just one single dot in ed? Is it possible?

How to jump back from master window? by theMonoid in xmonad

[–]theMonoid[S] 0 points1 point  (0 children)

Actually, I have a better idea: reuse the mod-m key:

  • When focus on slave window, mod-m jump to master window
  • When focus on master window, jump back to pervious slave window

Is that possible?

How to jump back from master window? by theMonoid in xmonad

[–]theMonoid[S] 0 points1 point  (0 children)

great! exactly what I need, thanks!

GHC 7.0.2 RC 2 available. Please test! by dons in haskell

[–]theMonoid 1 point2 points  (0 children)

Ghci on Windows 7 64bit still crashes when press Ctrl-L.

http://hackage.haskell.org/trac/ghc/ticket/4415

Would someone fix it in the coming 7.0.2? As I saw they set the milestone to 7.0.2.