cookie

Utilizamos cookies para mejorar tu experiencia de navegación. Al hacer clic en "Aceptar todo", aceptas el uso de cookies.

avatar

oleg_log

Shelter for antisocial programmers "Oleg" halp: @olegkovalov web: https://olegk.dev fov: @oleg_fov chat: @oleg_log_blabla podcast: @generictalks about: https://t.me/oleg_log/3200

Mostrar más
Publicaciones publicitarias
1 953
Suscriptores
-224 horas
-97 días
-3030 días
Distribuciones de tiempo de publicación

Carga de datos en curso...

Find out who reads your channel

This graph will show you who besides your subscribers reads your channel and learn about other sources of traffic.
Views Sources
Análisis de publicación
MensajesVistas
Acciones
Ver dinámicas
01
https://go.dev/blog/randv2
3310Loading...
02
https://www.youtube.com/watch?v=S_RorY_FRvo
4081Loading...
03
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 '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.
84116Loading...
04
HTTP/3 is alive https://pkg.go.dev/golang.org/x/net/quic
5052Loading...
05
Guess what, -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 🎉
6062Loading...
06
A Cloud-Scale Characterization of Remote Procedure Calls https://foci.uw.edu/papers/sosp23-rpc.pdf
6216Loading...
07
> 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?
6300Loading...
08
Go if's with init statement #monran 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.
6221Loading...
09
Did you know that Github can be used as a public key wallet? 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.
66715Loading...
10
Secure Messaging Apps Comparison https://www.securemessagingapps.com/
6737Loading...
11
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.
7107Loading...
12
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)
7202Loading...
13
https://www.youtube.com/watch?v=OBPxaNB_NUA
7734Loading...
14
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.
7995Loading...
15
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, 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.
8711Loading...
16
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.
8771Loading...
17
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 🤷
95413Loading...
18
LOL https://newsroom.ibm.com/2024-04-24-IBM-to-Acquire-HashiCorp-Inc-Creating-a-Comprehensive-End-to-End-Hybrid-Cloud-Platform
9114Loading...
19
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
93615Loading...
20
> 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/
9054Loading...
21
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. ffmpeg <3kb of flags> | ssh-upload [email protected] (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?)
9130Loading...
22
WDYT about modern decentralized social networks? Mastodon, BlueSky, etc (if any?)
9130Loading...
23
Time to confess: I still don't get the idea of LLM for devs. I have used GPT4/Gemini like 8 times during the past year. Probably 1 or 2 times I really tried to get the answer, not just chatting to see how good it is. LLM as a search engine - sounds ok. LLM as an active assistant - nope, don't get it. So, the questions: why and how do you use it? What stuff you cannot do by yourself and only(?) via LLM ?
1 0005Loading...
24
Hm, all this 'IT sucks', 'coding is a horrible thing to do in life', 'i hate my life because of programming' yada yada yada. Is this just a CIS thing or also popular in a western culture? (EU and USA as you can guess) (CIS == Commonwealth of Independent States)
1 0601Loading...
25
Media files
1 1332Loading...
26
Media files
30Loading...
27
New format: Monday rant or #monrat 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). For me, Rust's imports add one more dimension (see pic). I just don't get this unneeded complexity and 40 ways of doing obvious AND SIMPLE stuff. IDE can hide, it buuuut isn't this a way to solve a problem that shouldn't exist at all, mm? Lovely (even by crustaceans) mod/crate topic I will leave for another Monday 😥
1 1012Loading...
28
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 to test handling of .xz, .lzma (LZMA_Alone), and .lz (lzip) files in decoder implementations. Many of the files have been created by hand with a hex editor, thus there is no better "source code" than the files themselves.” Having these kinds of test files is very common for this kind of library. Jia Tan took advantage of this to add a few files that wouldn't be carefully reviewed. (from https://research.swtch.com/xz-timeline) Horseshit: > Many of the files have been created by hand with a hex editor, thus there is no better "source code" than the files themselves.” Bullshit: > Having these kinds of test files is very common for this kind of library. Well, you decided to test something. You wrote a binary file and a test. Great. Fast-forward 3mo and give this test to someone else (future you, by example). Guess what? You have no freaking idea what you did 3mo ago! If you are the smartest peasant on this planet and can recall all the steps in hex-editor in 30 minutes, that's cool, but you are lying to yourself. Of course, xz-attack isn't just a 1 commit and sneaky code. It's also social engineering (kinda). Anyway, such dirty commits should not be accepted with "easier to write manually" argument. (TBH AFAIR, I might have commits where I have a hex-string to test un/marshal, but I'm not from CIA or another gov-team😢)
1 0521Loading...
29
Not sure but feels like this channel will be back, I mean IT-related shitposting. En Inglés 💃 As you can guess comments MUST be in English (see RFC 2119).
1 0723Loading...
30
Эстетика 👌
1 23614Loading...
31
What Rust Foundation spend all their budget on https://twitter.com/tsoding/status/1780848764665688503
1 40035Loading...
32
https://www.youtube.com/watch?v=FXdIJMsH0lI
1 3714Loading...
33
шо думаете про дурова?
1 2990Loading...
34
Посоветуйте тулзу/сервис для бекапов. Хочется бекапить пару десяток гигов, обязательно с паролем. Идеально в S3-like.
1 8533Loading...
35
https://petition.kmu.gov.ua/petitions/6225 Петиція про заборону телефонного зв'язку для російських полонених
2 3595Loading...
36
Харків. Ці кадри неможливо дивитися з холодним серцем. Молодий вогнеборець плаче на місці удару, де росія декілька хвилин тому цинічно вбила його батька – 52-річного рятувальника. Загиблий Владислав Логінов присвятив своє життя роботі в пожежній службі. Його син, Володимир, також за прикладом батька став вогнеборцем і працював начальником караулу у сусідній пожежній частині. Цієї пекельної ночі, одразу після перших вибухів, батько та син з колегами миттєво виїхали на місце удару. Владислав та Володимир працювали поряд, буквально за декілька будинків один від одного. Коли пролунав потужний вибух, син одразу зрозумів, що найімовірніше прилетіло туди, де був батько. Складно уявити емоції, що пережив чоловік, коли побачив закривавлене тіло батька. Велике горе для рідних, колег, друзів. Щиро співчуваю втраті кожної родини. Памʼятаємо всіх 🕯️
2 1935Loading...
37
hehe https://twitter.com/lemire/status/1774505068122808564
1 5947Loading...
Mostrar todo...
Evolving the Go Standard Library with math/rand/v2 - The Go Programming Language

Go 1.23 adds math/rand/v2 and charts a course for the evolution of the Go standard library.

Mostrar todo...
GitHub Copilot just got promoted to Captain

Take a first look at GitHub Copilot Workspace - a new AI coding tool that can build features and fix bugs directly in your codebase. Compare Copilot Workspace to Devin and other automated programming tools. #programming #ai #thecodereport 💬 Chat with Me on Discord

https://discord.gg/fireship

🔗 Resources GitHub Copilot Workspace

https://github.blog/2024-04-29-github-copilot-workspace/

Devin Programming AI

https://youtu.be/AgyJv2Qelwk

Copilot Workspace Overview

https://youtu.be/L5Xny6yehUg

🔥 Get More Content - Upgrade to PRO Upgrade at

https://fireship.io/pro

Use code YT25 for 25% off PRO access 🎨 My Editor Settings - Atom One Dark - vscode-icons - Fira Code Font 🔖 Topics Covered - What is Copilot Workspace? - Copilot Workspace vs Devin - Best AI coding tools - Is coding dead? - The future of programming tooling - Top AI tools for programmers in 2024 - Will GPT-5 make coding obsolete?

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 '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.
Mostrar todo...
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.

Mostrar todo...
quic package - golang.org/x/net/quic - Go Packages

Package quic implements the QUIC protocol.

Guess what, -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 🎉
Mostrar todo...
A Cloud-Scale Characterization of Remote Procedure Calls https://foci.uw.edu/papers/sosp23-rpc.pdf
Mostrar todo...

> 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?
Mostrar todo...
Workflow runs · gobwas/ws

Tiny WebSocket library for Go. Contribute to gobwas/ws development by creating an account on GitHub.

Go if's with init statement #monran 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.
Mostrar todo...
Did you know that Github can be used as a public key wallet? 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.
Mostrar todo...
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

Secure Messaging Apps Comparison https://www.securemessagingapps.com/
Mostrar todo...
Secure Messaging Apps Comparison | Privacy Matters

This site compares secure messaging apps from a security & privacy point of view. These include Facebook Messenger, iMessage, Skype, Signal, Google Allo, Threema, Riot, Wire, Telegram, and Wickr. The best secure messaging app?