HNHacker News
TopNewBestAskShowJobs

enedil

732 karma · joined February 2, 2015

[ my public key: https://keybase.io/kataryniarz; my proof: https://keybase.io/kataryniarz/sigs/6WPP7pBo3dhCWrslSjwlyHqz9jl4l7zBg4HsqsGwqTg ]
submissionscomments
enedil··on I think I found a Mac kernel bug (2018)
Lock contention usually impacts performance, but not liveness.
enedil··on Everything I wish I knew when learning C
Then you are wrong, since we're already talking about arrays of sizes known at compile time. Indeed, otherwise we would also need to remember the size in the runtime.
enedil··on Making a Go program faster with a one-character change
I do not agree. When you benchmark you usually measure the differences between times needed to complete. This is because it is highly non-obvious that if you increase workload twice, the time increases also twice. Perhaps the algorithm is not linear. Perhaps if you have more data, you suddenly need to swap memory. Perhaps something (like disk access in parallel) means that actually it takes less than 2x time. This means that a concept of speed per unit of work is undefined. So the only reasonable interpretation of "70% faster" means "spends 30% time of original".
enedil··on Making a Go program faster with a one-character change
Went from 4.139s to 2.413s. I fail to see how it is 70%. I think it is explained as 4.139/2.413 = 1.7 which of course doesn't make sense here.
enedil··on “When we all have pocket telephones”
I doubt that if somebody cannot afford a haircut, their data would be that pricey.
enedil··on SHA-3 Buffer Overflow
I didn't see anybody mention arbitrary code execution
enedil··on A database without dynamic memory allocation
Yes, this approach is followed as well, but now you're at the problem of writing a memory allocator by yourself (which might of course turn out to be better for your usecase). So the issue of writing code that avoids allocation still prevails, as now you probably want to know what to allocate memory for, since if you were supposed to make a general purpose allocator, it is likely it won't overperform libc malloc.
enedil··on New ScyllaDB Go Driver: Faster Than GoCQL and Its Rust Counterpart
I wonder why you got downvoted, the comments are on point.

Disclaimer: I work for ScyllaDB, although not on drivers. I can forward your question to relevant people.

enedil··on Dutch employee fired by U.S. firm for shutting off webcam awarded €75K in court
When I'm on sick leave in Poland, first two weeks are covered by the employer (80%) and only after that it's covered by tax money.
enedil··on Dutch employee fired by U.S. firm for shutting off webcam awarded €75K in court
I'm not sure how it's counted, but in Poland we initially get 20 days and 26 after you work several years. Maybe the 4 weeks include national holidays, which don't count into the limit I mentioned.
enedil··on Someday aliens will land and all will be fine until we explain our calendar
Well, in Polish, Monday is poniedziałek, which means "after Sunday" (Sunday is "niedziela") and not "start of the week" and it looks analogous in Russian...
enedil··on Someday aliens will land and all will be fine until we explain our calendar
I believe that it is in spirit of this website that you are encouraged to explain poorness of a joke, if you find it poor. After all, if it inspires curiosity what's the issue?
enedil··on GPU mining no longer profitable after Ethereum merge
Imo that's a bit of a failed analogy. More appropriate would be, imagine coffee is something very precious and Starbucks suddenly stopped selling to women. In this case, women need to go to other cafes, increasing their competition over coffee there. But in that case it doesn't seem to be so absurd any more - perhaps it's not the case that the coffee resources are so scarce (just as it's the case with crypto - does 3x miners of some currency mean that each of them makes 3x less? I don't think so). Also, is it true that 80% of revenue was from Ethereum, or it's dummy data?
enedil··on Ask HN: What are examples of companies dying due to many people quitting?
Quote 3 from https://pl.m.wikiquote.org/wiki/Janusz_Filipiak

Sadly only in Polish.

enedil··on Show HN: Modifying Clang for a Safer, More Explicit C++
mutable x = y in my opinion should be allowed. After all the new variable is just a copy of old one. Why shouldn't you be able to modify it?
enedil··on What’s going on with Google and Facebook hiring freezes?
Google in Poland doesn't pay in USD. Why would you think they want simpler solutions?
enedil··on New Upcoming Telegram Premium Features
You need to give away your contacts in order to chat with anyone.
enedil··on New Upcoming Telegram Premium Features
There are quite a few:

- free large file upload (max 2GB), - native (non-electron) app for all the desktop platforms, - custom stickers (and not so limited as reactions on Discord, anybody can use any sticker set anywhere) - nice bot api (discord offers quite good experience as well) - works well when on shaggy mobile network. Doesn't send duplicate messages/etc (Messenger does) - doesn't censor messages. I'm free to send link to any website, upload any file type (again, looking at you, messenger) - you can quickly summarize different media shared in a given conversation, view all photos, movies, files, URLs, etc - search actually finds stuff (looking at you again, messenger) - you can be logged in on any number of devices (phew, WhatsApp)

Probably there are more. I'm so happy that most of my friends switched.

enedil··on In defense of coding interviews
Parent commenter asked for little o, not for big O. So to be safe, better say n^o(n^2).
enedil··on Lifetime Annotations for C++
In our codebase though we have some places where we do `delete this;` and later use placement new, to restore `this` to some valid state.
enedil··on Scooping the Loop Snooper (2000)
Well, if you know anonymous function, it should be easy to understand what happens. Functions are first-class objects here. Q is a procedure that takes an arbitrary procedure. It's not that you run the procedure. In fact, it's another way around, you want to say something about the source code of the function, not the result of applying it.
enedil··on What's my place in the world population?
I think that the website tells you to provide yearly income in yens, but it treats the number as if it was USD. I got the info that I'm in top 1.2% when I input my salary in PLN.
enedil··on LibreTube main devs account has been suspended by GitHub without any reasons
Why editioralize, when you can just flag.
enedil··on Why does Google use location for language rather than browser settings?
I can tell you, that I saw my native Polish, and I wish I didn't. The automatic translation is so bad, that I automatically rush to switch to English.
enedil··on Apple M1 Ultra
C++ adds a few time-consuming stuff, like templates, however my belief was that what uses the most time is optimization passes, which won't be much faster for C. The actual benchmarks should be done however.
enedil··on Apple M1 Ultra
Kernel has thousands of compilation units. Each of them is compiled by a separate compiler process. Only the linking at the end doesn't parallelise, however it should take a much smaller part of the time. The proportions change of course, if you develop kernel and do incremental builds lots of times. Then the linking stage might become a bottleneck.

The above statement should also relate to most other C/C++ projects.

enedil··on C meeting is over. C23 added:
C mandates that arrays have positive size. It's not really a discussion about what the target platform does, rather it's what the abstract C machine mandates.
enedil··on C meeting is over. C23 added:
Manual says

> If size is 0, then malloc() returns either NULL, or a unique pointer value that can later be successfully passed to free().

So it's not really an array of bytes of size 0.

enedil··on Facebook loses users for the first time
Facebook requires employees to provide their personal account, which will be used throughout the work.
enedil··on Origin of the Bluetooth Name
It becomes even funnier with a dual-boot setup. My headphones think they are connected with my laptop, but either the pairing was with Linux or Windows, in which case I need to disconnect and connect again.
← PreviousPage 3 of 10Next →