oleg_log
On test reproducibility or again about xz backdoor. > 2024-02-23: Jia Tan merges hidden backdoor binary code well hidden inside some binary test input files. The README already said (from long before Jia Tan showed up) “This directory contains bunch of files…
Again about deps and security.
What the hell, why ffmpeg requires libssh? There should be a feature that processes remote data. I can even say that this might be useful for someone.
The only question I have is why it can't be achieved by the composition of tools. Yeah, this unix-philosophy and | operator.
pros:
- less code
- less backdoors
- less stuff to document
cons:
- less code
- less backdoors
- more stuff to document
Still, ffmpeg is the beast, and in xkcd2347 is a 1st or 2nd block from below.
(ffmpeg also requires zeromq, wen kafka and hadoop?)
What the hell, why ffmpeg requires libssh? There should be a feature that processes remote data. I can even say that this might be useful for someone.
The only question I have is why it can't be achieved by the composition of tools. Yeah, this unix-philosophy and | operator.
ffmpeg <3kb of flags> | ssh-upload root@150.5.40.7 (you get the idea)pros:
- less code
- less backdoors
- less stuff to document
cons:
- less code
- less backdoors
- more stuff to document
Still, ffmpeg is the beast, and in xkcd2347 is a 1st or 2nd block from below.
(ffmpeg also requires zeromq, wen kafka and hadoop?)
> I’d argue Raghavan (and, by extension, Google CEO Sundar Pichai) deserve as much criticism, if not more, for the damage they’ve done to society. Because Google is the ultimate essential piece of online infrastructure
https://www.wheresyoured.at/the-men-who-killed-google/
https://www.wheresyoured.at/the-men-who-killed-google/
Ed Zitron's Where's Your Ed At
The Man Who Killed Google Search
Wanna listen to this story instead? Check out this week's Better Offline podcast, "The Man That Destroyed Google Search," available on Apple Podcasts, Spotify, and anywhere else you get your podcasts. UPDATE: Prabhakar has now been deposed as head of search…
Borrow checking, RC, GC, and the Eleven (!) Other Memory Safety Approaches.
That’s a very good read. As mentioned in outro some of the types can be merged. Anyway, cool stuff. We mentioned this language a few times in our podcast, good to see language is still alive.
https://verdagon.dev/grimoire/grimoire
That’s a very good read. As mentioned in outro some of the types can be merged. Anyway, cool stuff. We mentioned this language a few times in our podcast, good to see language is still alive.
https://verdagon.dev/grimoire/grimoire
Easily build SQL queries in Go with builq (TBH, this should be a post on olegk.dev, but meh)
Less than two years ago, I had to write a bunch of SQL queries. The worst part was that all of them were custom/dynamic/configurable/you name it. Guess what? I didn't find a good library that looked good for me.
As a result, I wrote one: https://github.com/cristalhq/builq
Basically, it's just 1 Builder type (in a few forms due to API evolution), a few formatting directives (%s, %$, and %?), and nothing else.
There is nothing like db.Select("foo") from ("bar") or other stuff. It is better to scroll through examples and the GUIDE.md file to get the idea.
I am not sure what features lib misses, but feel free to submit a request 🤷
Less than two years ago, I had to write a bunch of SQL queries. The worst part was that all of them were custom/dynamic/configurable/you name it. Guess what? I didn't find a good library that looked good for me.
As a result, I wrote one: https://github.com/cristalhq/builq
Basically, it's just 1 Builder type (in a few forms due to API evolution), a few formatting directives (%s, %$, and %?), and nothing else.
There is nothing like db.Select("foo") from ("bar") or other stuff. It is better to scroll through examples and the GUIDE.md file to get the idea.
I am not sure what features lib misses, but feel free to submit a request 🤷
Are there Zed fans? Name a killing feature compared to VSCode, Sublime Text or any IDE.
I just don't get the excitement around Zed. Collab edit maybe but feels like nothing revolutionary.
I just don't get the excitement around Zed. Collab edit maybe but feels like nothing revolutionary.
Deploy binary like in old times.
For the last 3 years, I have had a mix of services: k8s and just a binary. As you can easily guess, the latter works flawlessly,
TBH, I cannot recall a problem with
With k8s, everything is amazing globally: unified deployment, hire and fire humans without a problem. The next one will read the same yaml madness. Indeed nice.
But how much time was wasted in my team on k8s ecosystem is unreal. You can try to argue that the team had a little experience in k8s but not (not full-time k8s ops, that's true).
I think this is mostly a Go feature now; having the ability to deploy binary is a lost art in the 21st century 😢 Ah, YMMV.
PS: yeah, we had a problem with
For the last 3 years, I have had a mix of services: k8s and just a binary. As you can easily guess, the latter works flawlessly,
scp'- like tool, `systemctl restart and done.TBH, I cannot recall a problem with
ssh, like I really cannot. You have a key locally, a key on the bastion machine, and 99% of the stuff is done now.With k8s, everything is amazing globally: unified deployment, hire and fire humans without a problem. The next one will read the same yaml madness. Indeed nice.
But how much time was wasted in my team on k8s ecosystem is unreal. You can try to argue that the team had a little experience in k8s but not (not full-time k8s ops, that's true).
I think this is mostly a Go feature now; having the ability to deploy binary is a lost art in the 21st century 😢 Ah, YMMV.
PS: yeah, we had a problem with
ssh deploys: removing old binaries.I bet some of you have personal projects running in the cloud. How do you manage them?
Just a repo with TF/CF scripts? Home-made bash scripts? Personal memory-safe ✅ high-performance 🚀 HTTP framework? Smth else?
My project is structured in a single repository. Inside, I've included everything I need to manage: the machine, firewall, certificates, load balancer, and monitoring. Each repository also contains the same Taskfile (taskfile.dev) commands for easy deployment or quick machine checks.
How do you structure your projects? I'm curious what you have.
Just a repo with TF/CF scripts? Home-made bash scripts? Personal memory-safe ✅ high-performance 🚀 HTTP framework? Smth else?
My project is structured in a single repository. Inside, I've included everything I need to manage: the machine, firewall, certificates, load balancer, and monitoring. Each repository also contains the same Taskfile (taskfile.dev) commands for easy deployment or quick machine checks.
How do you structure your projects? I'm curious what you have.
oleg_log
New format: Monday rant or #monran Rust 🤦♂️ I got a mention in one Rust PR, and oh, these imports (use keyword). See the screenshot in the next post. Someone smart said that type-driven programming is another dimension of programming (orthogonal to code).…
Regarding programming in types & Go:
This is a restriction expressed in the type system. Go intentionally has a weak type system, and there are many restrictions that can be expressed in other languages but cannot be expressed in Go. Go in general encourages programming by writing code rather than programming by writing types.
(c) Ian Lance Taylor
(src https://t.me/oleg_log/786)
This is a restriction expressed in the type system. Go intentionally has a weak type system, and there are many restrictions that can be expressed in other languages but cannot be expressed in Go. Go in general encourages programming by writing code rather than programming by writing types.
(c) Ian Lance Taylor
(src https://t.me/oleg_log/786)
Telegram
oleg_log
This is a restriction expressed in the type system. Go intentionally has a weak type system, and there are many restrictions that can be expressed in other languages but cannot be expressed in Go. Go in general encourages programming by writing code rather…
https://loglog.games/blog/leaving-rust-gamedev/
+
https://news.ycombinator.com/item?id=40172033
=
<3
Well, nothing super-duper but with a good coffee can be an interesting reading (and telling yourself "oh, people are dumb on too many things").
Lang war. Lang war never changes.
(PS: HN thread is 900+ comments and growing)
+
https://news.ycombinator.com/item?id=40172033
=
<3
Well, nothing super-duper but with a good coffee can be an interesting reading (and telling yourself "oh, people are dumb on too many things").
Lang war. Lang war never changes.
(PS: HN thread is 900+ comments and growing)
Did you know that Github can be used as a public key wallet?
See
This also reminds me of https://github.com/FiloSottile/whoami.filippo.io
I'm strongly suggesting to check README ^^^ good intro to how SSH behaves.
See
https://github.com/<username>.keys This also reminds me of https://github.com/FiloSottile/whoami.filippo.io
I'm strongly suggesting to check README ^^^ good intro to how SSH behaves.
GitHub
GitHub - FiloSottile/whoami.filippo.io: A ssh server that knows who you are. $ ssh whoami.filippo.io
A ssh server that knows who you are. $ ssh whoami.filippo.io - FiloSottile/whoami.filippo.io
Go if's with init statement #monran
We all know such expression:
However, some big-brains prefer to squeeze as much as possible in it:
To be honest, I'm jealous. I want to read this code as easily as the author. I have a bad time trying to understand the point of pushing everything inside
Is the following version not good enough?
Argh.
We all know such expression:
if ok := foo(); !ok {
// ...
}However, some big-brains prefer to squeeze as much as possible in it:
if err := foo(ctx, logger,
user, &pb.MetaData{...},
&payload, whatever...,
); err != nil {
// ...
}
To be honest, I'm jealous. I want to read this code as easily as the author. I have a bad time trying to understand the point of pushing everything inside
if and complicated things.Is the following version not good enough?
err := foo(ctx, logger,
user, &pb.MetaData{...},
&payload, whatever...,
);
if err != nil {
// ...
}
Argh.
> Unable to find Go version '1.15' for platform darwin and architecture arm64.
Has something changed recently? Looks like week ago everything was fine https://github.com/gobwas/ws/actions
I also don't get this:
> We didn't promote darwin/arm64 to be a primary port until Go 1.16. Since Go 1.15 and Go 1.16 are no longer supported, we don't plan to backfill older binary releases.
https://github.com/golang/go/issues/63626
Anyway, why everything was ok week ago. Github CI cache or wut?
Has something changed recently? Looks like week ago everything was fine https://github.com/gobwas/ws/actions
I also don't get this:
> We didn't promote darwin/arm64 to be a primary port until Go 1.16. Since Go 1.15 and Go 1.16 are no longer supported, we don't plan to backfill older binary releases.
https://github.com/golang/go/issues/63626
Anyway, why everything was ok week ago. Github CI cache or wut?
oleg_log
testing: add -shuffle=off|on|N to alter the execution order of tests and benchmarks Держу кулачки, что в 1.17 таки зайдет. Чуть жаль, что не я это закодил, но где-то я просто перегорел с этой идеей и ожиданием (да, оправдываюсь чуть). https://github.com…
Guess what,
1 cleanup routine were missing in a test. So, as a result it was flaky due to conflicts in DB.
Yay 🎉
-shuffle=on saved my life today.1 cleanup routine were missing in a test. So, as a result it was flaky due to conflicts in DB.
Yay 🎉
Nice https://blog.kellybrazil.com/2021/12/03/tips-on-adding-json-output-to-your-cli-app/
Post in 2021, but still cool. Also, I didn't know about the
JSON is a lingua franca in the IT world, whether you like it or not.
Post in 2021, but still cool. Also, I didn't know about the
jc tool to make famous commands aware of JSON (to be precise, convert text output to JSON).JSON is a lingua franca in the IT world, whether you like it or not.
Brazil's Blog
Tips on Adding JSON Output to Your CLI App - Brazil's Blog
Best practices when adding a JSON output option to your command-line application.