Hacker News .hnnew | past | comments | ask | show | jobs | submit | pajko's commentslogin

PuTTY

That's a Windows app.

PuTTY is absolutely available for Linux. On Debian-based distros it’s just a `sudo apt install putty` away. But why?

One possibility is to run its terminal emulation somewhere else. But of course terminal emulators are a dime a dozen on Linux.

There's bigger issue than stuffing. In "rural" Hungary chain voting is customary where people are taken to the voting place by gangs and are either awarded with some money or a bag of potatoes, or threatened to be beaten if they do not comply. The first voter of the chain goes in, takes the ballot, hides it and takes it out. It is then pre-filled by the gang. The next voters take the prefilled ballot in, throw it in the box and bring a fresh clean ballot out, and so on...

In other cases, people get money/bag of potatoes for a photo of their correctly filled ballot.


Intentionally. Back then the guys were telling that everything could be solved by raw power.


Also don't forget losing daylight in summer evenings.


And you even get CO2-free meat in the end (I mean, if all the CO2 output is attributed to milk production only).





Timestamps should NOT be compared like this. Exactly this is why time_before() or time_after() exist.

https://elixir.bootlin.com/linux/v6.15.7/source/include/linu...


Offtopic...

    * Do this with "<0" and ">=0" to only test the sign of the result. A
    * good compiler would generate better code (and a really good compiler
    * wouldn't care). Gcc is currently neither.
It's funny the love-hate relationship the Linux kernel has with GCC. It's the only supported compiler[1], and yet...

[1] can Clang fully compile Linux yet? I haven't followed the updates in a while.


To be fair this comment predates git history (before 2005) when GCC wasn't a very good compiler. The kernel developers at one point were sticking with a specific version of GCC because later versions would miscompile the kernel. Clang didn't exist then.

GCC is a different beast and far better nowadays.



Do I understand it correctly that the logic is that if timestamp B is above timestamp A, but the difference is more than half of the unsigned range, B is considered to happen before A?


Yes. When the timestamps wrap it's fundamentally ambiguous, but this will be correct unless the timestamps are very far apart (and the failure mode is more benign: a really long time difference being considered shorter is better than all time differences being considered zero after the timestamp wraps).


And? Critical software like this shall have zero warnings.


Then they shall compile with --no-warnings. Werror only makes the build to fail, without additional benefit for the user.


Failing to build is better than building with undefined behavior.

If you disagree, you can always remove -Werror, at your own risk.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: