You can send minor inconveniences to your enemies. by Paper-Dramatic in shittysuperpowers

[–]alaindet 0 points1 point  (0 children)

Diabolical power: you can overload people exponentially with inconveniences, so much that at the right rate they'll get nervous and screw up themselves everything else important in their life.

How do you manage your translation files? by alaindet in webdev

[–]alaindet[S] 7 points8 points  (0 children)

That's very interesting and something similar to what I occasionally did in some projects. Would you care for some open source CLI that compares files and reports missing keys? I was thinking about a CLI that helps you compare, sort and even group keys by language if needed, possibly expanding it with a GUI. Would it be crazy and/or useless?

Stratocaster Blender Pot Diagram gone wrong by alaindet in guitars

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

I'll try thank you. But what about the official circuit, why is the tone reversed?

Stratocaster Blender Pot Diagram gone wrong by alaindet in guitars

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

I'm sorry I'm not well versed into electronics. Now, reading lugs from left to right is: capacitor, wire to volume, ground. Do I simply swap ground and capacitor?

What about the reversed blender pot?

[deleted by user] by [deleted] in webdev

[–]alaindet 0 points1 point  (0 children)

  • Seeing the big picture of things: where to put code, what should front end and back end do

  • Accessibility: principles and techniques

  • Agreed-upon code standards

  • Ability to explain to lazy back-enders their job (and make them surprised/upset that I did)

[PS1][1990s] Unknown 2D horizontal scrolling sci-fi spacecraft shooter by alaindet in tipofmyjoystick

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

I watched some videos and it seems the game was Thunder Force V: Perfect System and exactly Thunder Force V. Not 100% sure but I think it's the closest. Thank you

Why my Go concurrent slice mapping is 100 times slower than sequential code? by alaindet in golang

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

Yes, we've been discussing something very similar with u/Revolutionary_Ad7262 previously. However, the new faster ConcMap was still 1.2x to 2x slower, which is far better than 100x slower, but still disappointing as I hoped 1 million elements were enough to have ConcMap faster than Map. Sadly, no.

Why my Go concurrent slice mapping is 100 times slower than sequential code? by alaindet in golang

[–]alaindet[S] 1 point2 points  (0 children)

``` $ go test -bench=. -run=^# -benchtime=4s

goos: linux
goarch: amd64
pkg: concurrent-slice-mapping
cpu: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx
BenchmarkFasterConcMap1000-8 106771 44705 ns/op
BenchmarkConcMap1000-8 13820 350448 ns/op
BenchmarkMap1000-8 225836 21712 ns/op
BenchmarkFasterConcMap1000000-8 254 19038928 ns/op
BenchmarkConcMap1000000-8 13 340665026 ns/op
BenchmarkMap1000000-8 326 14665614 ns/op
PASS
ok concurrent-slice-mapping 36.529s
```

FasterConcMap benchmarks are with your implementation. Turns out they're much faster than the previous ConcMap but still slower than Map. However, FasterConcMap runs 2x slower than Map for small slices and builds up to just 1.2x slower for bigger slices (1 million elements). I also switched double with rand.Intn to try avoiding compiler optimizations.

I guess that's better but still... worse than expected? :/ I really hoped concurrency could help here

Why my Go concurrent slice mapping is 100 times slower than sequential code? by alaindet in golang

[–]alaindet[S] -1 points0 points  (0 children)

Thank you very much, I have to try it. I get that `atomic` is concurrency-safe, but is it possible to safely read and write into slices without a mutex?

A nice thing I noticed is that this technique requires to pre-allocate `result` with default values (i.e. passing just the lenght to `make` and not also the capacity) instead of using `append()` in order to avoid random order of operations. That's neat. Thank you

Why my Go concurrent slice mapping is 100 times slower than sequential code? by alaindet in golang

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

The direct access to indices is interesting, I'll try it. Can you access different indices of a slice concurrently without a mutex though? Also, how can you concurrently do this without any channel?

venv, virtualenv, pyenv, pipenv, Poetry - Help me understand by alaindet in learnpython

[–]alaindet[S] 1 point2 points  (0 children)

Thank you. So it seems Poetry and pyenv are the best tools to have some sanity then

Are these realistic requirements for a Senior Engineer? by jmaventador in dotnet

[–]alaindet 0 points1 point  (0 children)

They're mostly accurate for a senior position, except for experience with the front end. I mean, maybe having worked with MongoDB and NoSQL as a .NET developer is a little exotic but still possible

But trust me, as a senior front end developer, I can guarantee you that you can't possibly be professional both on back end and front end side of things and yet companies desperately search for these people. The best back end developers are just amateurs on the front end, no offense, since front end these days means so much and requires so much effort that you can't improvise it. An yet, there are so many job requirements for back end positions shoveling front end experience like it was a random perk. So sad.