First time I hear about checked exceptions. How do you use them ? Are you forced to handle them explicitly ? Is the handling checked at compile time ?
First time I hear about checked exceptions. How do you use them ? Are you forced to handle them explicitly ? Is the handling checked at compile time ?
- Is a modern language with a good build system (It’s like night and day compared to CMake)
Meson exists … as do others.
But they are not the default option. And your new job may not use them.
- And I just like how the language works (errors as values etc.)
Fair enough; though why? What’s wrong with exceptions?
Exceptions is a non standard exit point. And by “non standard” I’m not talking about the language but about its surprise appearance not specified in the prototype. Calling double foo();
you don’t know if you should try/catch it, against which exceptions, is it an internal function that may throw 10 level deep ?
By contrast fn foo() -> Result<f64, Error>
in rRst tell you the function may fail. You can inspect the error type if you want to handle it. But the true power of Result in Rust (and Option) is that you have a lot of ergonomic ways to handle the bad case and you are forced to plan for it so you cannot use a bad value thinking it’s good:
foo().unwrap()
panic in case of error (see also expect
)foo().unwrap_or_default()
to ignore the error and continue the happy path with 0.0foo().unwrap_or(13.37)
to use your defaultfoo()?
to return with the error and let the parent handle it, maybeFrom the article’s own summary.
False Load Output Prediction and Speculative Load Address Prediction allow for data leaks without malware infection
But I guess “IA summary” did its best ¯\_(ツ)_/¯
Why should I use a sudo alternative?
-g
is not documented, what does it do?
Note: this made me discover topless (SFW) and its Caveat section.
From your example, I have a hard time inferring what is it doing.
--single-branch
Most of the time the fix is: put quotes around your strings (especially when they may contains globing patterns). Sometimes its using newer syntax available in bash but not on the snippet.
I only have to “quotes” strings that contains globs. The rest mostly work or use the newer/recommanded way to do things for posix shells.
But I must admit, I only use it interactively. For scripts I . I will use something else once it won some/most the distro preinstalls (either nu, elvish, fish, but for now it’s sadly python).
Thanks to valve/proton, the biggest issue for playing on linux nowadays is the kernel level anti-cheat they force on some competitive games.
Other than that most of the games just work, especially if they were made in a common engine (godot, unity, ue, …)
The only AAA I play are Nintendo ones (and RTS/MOBA since its a niche genre and you need a community for PvP). Since quite some times already. But I only look out for indies, I love getting new experiences and gameplay.
And even when the gameplay is not new, the attention to details (gameplay wise) is at 1000% only on indies (Celeste, Hollow knight, Factorio, …)
I think some peoples developped an allergy to projects being (re-)written in rust. Not sure why.
I don’t know elvish, but I can’t get into nu
. It is too different than what I learned (bash
). I’m not sure I understand what they want to accomplish… Maybe I’m not the target, I use the shell to start commands as a dev, not as a devops or data guy…
I also had a hard time using fish
the first time I tried it. But since the version on Debian 10 I re-tried and now the only thing to know is “put the arguments in quotes if you want the command to do globbing”. With that you can use 99% of the commands you find on internet as is.
I used Kresus some times ago on a server. It was nice, but my bank don’t play nice and it is not my thing to manage like that.
It should auto import and… I did not follow developments so don’t remember the functionalities.
I’m on Linux and a prebuit PC would be a nice change. But at the same price or lower than Windaube, since I don’t want a licence for them.
I will prefer to build myself rather than paying an extra k…
Did you tried UnCiv ? Feels like garbage to play to me. Maybe it is just too complete for my mobile game sessions… (And I don’t really like civilisation turn based games anymore.)
Mindustry (factorio like) plays badly on mobile (everything is too small, touch is not precise need to zoom a lot but you don’t see anything/can’t build long belt that way). But now I want to play it on PC.
On the other hand, Feudal Tactics is really nice to play on mobile.
Apparently stow -t
exist too.
usage
should just be help
(avoid extra step)connect
does not exist (see add
and cmd list)git clone <REPO> <DEST FOLDER>
, no need to cd
maybeCreateDir
is not used each time, there are some mkdir
{MESSAGE:=change}
set -euxo pipefail
at the start of the script if you want to exit at any error. Some sort of bash strict models
’s outputI’m too lazy to open issues/PR for all that, and I still need to learn stow
. Hopfully this might help me ? (I don’t really need help with git
that this sçript look to abstract too much for me.)
Oh, didn’t knew about Alt d
. Thx
I’m with the others:
fd
default syntax is easier to remember.And for the interactive search I’m using
skim
. With it Icd
to the dir I want andAlt t
to trigger fuzzy finding. There are also bindings to search for dir or in the history. The neat part is that results are inserted as is in the command line, no need to xargs or copy them. It also make the history look like I always know where the files I want are when in reality they are just fuzzy-found