leanpub, to ComputerScience
@leanpub@mastodon.social avatar

Build Your Own Database From Scratch by build-your-own.org is on sale on Leanpub! Its suggested price is $29.00; get it for $19.75 with this coupon: https://leanpub.com/sh/BjexLW1x #ComputerProgramming #Databases #Go #SoftwareArchitecture #ComputerScience

dusnm, to random
@dusnm@fosstodon.org avatar

People complain too much about error handling in . Like it or not, go treats errors like any other value. Since the compiler forces you to use all return values of functions, unless you specifically discard the error, you're always aware of which functions can error and that goes a long way to improve the reliability of your software.

Java has checked exceptions, JavaScript trusts you to know that a function 20 slots down the call stack has an unhandled error.

83r71n, to Cybersecurity

A critical vulnerability, named BatBadBut, was discovered in the Rust programming language, affecting not just Rust but also Erlang, Go, Python, Ruby, and potentially others. This vulnerability, with a severity score of 10/10, could allow attackers to execute arbitrary commands on Windows systems by exploiting how Rust handles batch files. The issue arises from Rust's standard library improperly escaping arguments when invoking batch files on Windows, leading to potential command injection. The vulnerability has been addressed with a fix in Rust version 1.77.2, which developers are urged to update to. Other programming languages and systems, including Node.js, PHP, and Java, are also affected and are working on patches.

https://flatt.tech/research/posts/batbadbut-you-cant-securely-execute-commands-on-windows/

https://blog.rust-lang.org/2024/04/09/cve-2024-24576.html

cuddle, to random
@cuddle@bsd.cafe avatar

There are just too many "problems" with C++. I wish modern C++ was something back in the day, so we won't have to suffer.

Libraries still uses iostream to display in stdout/stderr and it's certainly not my favorite. It's slow, bloated, and isn't even describable.

e.g.
std::cout << a.x << " " << a.y << " " << a.z << '\n';
vs
std::println("{} {} {}", a.x, a.y, a.z);

And here we come, standard of string

why:
std::string a = "Hello world";
if (a.find('r') != std::string::npos)
fmt::println("{}", pos);
else
fmt::println("not found");

and why not:
std::string a = "Hello world";
if (a.contains('r')) // Do member function overloading in the class
fmt::println("{}", pos);
else
fmt::println("not found");

why standard doesn't implement trimming functions for white spaces? why do I always have to rely on iterators for such things... (it's just feels like I've to type too much for a basic functionality)

and there's more but let's keep this post small.

jhx,
@jhx@bsd.cafe avatar

@cuddle
Sometimes when I need a break I go over and code something small with #Go
It is quite relaxing to do something in much less lines of code.
I love C in generel - the simplicity is divine.
Just sometimes one needs a break 🙂
I lack C++ experience... the small things I do on C++ does not make me competent to give any kind of experience.

Chewing away on code can be daunting, that is for sure.

Maybe you need a break from C++ @cuddle ? 🙂

thejapantimes, to business
@thejapantimes@mastodon.social avatar

Private drivers with their own vehicles can now be hailed for rides in Tokyo, marking the first time in Japan that ride-hailing has been put into practice after the system was introduced on April 1. https://www.japantimes.co.jp/business/2024/04/08/tech/tokyo-ride-hailing/

msf, to rust
@msf@hachyderm.io avatar

Optimized my implementation for and on my local machine (macbookpro m1), lowered the time from ~24secs to ~14secs.

why is my implementation faster than the one?

any kind soul wants to take a look?

It just goes to show what inexperience does to perf.

https://github.com/msf/1brc/tree/8c7d0da28c72e375c384681fe12d190e769305ad/src/main/rust/msf

leanpub, to ComputerScience
@leanpub@mastodon.social avatar

Build Your Own Database From Scratch: Persistence, Indexing, Concurrency https://leanpub.com/build_your_own_database_from_scratch by build-your-own.org is the featured book on the Leanpub homepage! https://leanpub.com #ComputerProgramming #Databases #Go #SoftwareArchitecture #ComputerScience

purelinux, to golang German
@purelinux@social.tchncs.de avatar

Whats your favorite #Go #webframework ? And why?

#golang

Wisesnail, to goodomens
@Wisesnail@mastodon.social avatar

I can relate, #Crowley... I really can! 🙈

I hope you like it 💙

#AnthonyJCrowley #DavidTennant #GoodOmens #GoodOmens2 #GO #GO2 #Wisesnail #Portrait

alyx, to golang
@alyx@3615.computer avatar

What’s your favorite library in #Go #Golang for web authentication? Or any other recommendation to implement it (like std lib or just a JWT one etc).

Ideally it supports classic credentials, 2FA and passkeys. Bonus for OAuth providers that you can extend (if it does not support Mastodon out of the box for example).

Reboost welcome 👉👈

billy, to rust
@billy@fosstodon.org avatar

Is there a language like #Rust (compiles to native binary, preferably without GC or manual memory management, has an easy-to-use build system) that also doesn't end up pulling in hundreds of transitive dependencies? Ideally what I'd want is like Rust but with #Python's standard library, capable of handling most basic tasks (even if external dependencies would make life easier). I often look at #Go but I don't want to tangle myself up with Google anymore than I already have

AndriiKuznietsov75, to Java Ukrainian
@AndriiKuznietsov75@social.kyiv.dcomm.net.ua avatar

Як працюють компіляція та виконання коду👇
🔸Компілювані мови (#C, C++, #Go)
Вихідний код перетворюється компілятором на машинний. Машинний код виконується безпосередньо процесором.
🔸Байт-код (#Java, C#)
Вихідний код компілюється у байт-код, а потім JVM виконує програму. Іноді JIT-компілятор компілює вихідний код у машинний, щоб прискорити виконання.
🔸Інтерпретовані мови (#Python, #JS, #Ruby)
Тут для виконання програми не потрібен машинний код, натомість програму рядково виконають інтерпретатори.

video/mp4

thejapantimes, to business
@thejapantimes@mastodon.social avatar

Japan has begun the slow rollout of ride-hailing services provided by private drivers through apps such as Uber and Go, almost a decade after other countries introduced them. Here's how it works. https://www.japantimes.co.jp/business/2024/04/02/ride-share-explainer/ #business #ridehailing #cars #uber #didi #go #sride

leanpub, to ComputerScience
@leanpub@mastodon.social avatar

Build Your Own Database From Scratch by build-your-own.org is on sale on Leanpub! Its suggested price is $29.00; get it for $19.75 with this coupon: https://leanpub.com/sh/X7ZbTCdt #ComputerProgramming #Databases #Go #SoftwareArchitecture #ComputerScience

ascherbaum, to PostgreSQL
@ascherbaum@mastodon.social avatar

PGXN v2: in or in ? Details in the article, vote now.

https://justatheory.com/2024/03/pgxn-language-choices/

rgacogne, to random
@rgacogne@mamot.fr avatar

Do I have a great #Go developer looking for a job in my contacts?

We at PowerDNS are hiring, remote is not a problem (most of us are remotely working from various places in the EU at the moment): https://careers.open-xchange.com/job/The-Hague-Senior-Software-Developer-PowerDNS-%28Go%29-%28mfd%29/973784855/

sonny, to rust
@sonny@floss.social avatar

#SwiftLang
#rustlang / #Rust
#Python
#JavaScript / #TypeScript
#C
#Vala
#Go
#CSharp
#CPlusPlus

Those are languages people use to write #GTK / #GNOME apps, and it's amazing ❤️

SenseException, to github German
@SenseException@phpc.social avatar
fyrfli, to random

does not list ‘unlisted’ posts on your profile page when loaded in the browser … without authentication.

This may not be new to some of you, but I just realised how big of a deal that is. It means that it kinda operates like local-only posts for randos, in that they aren’t viewable by anyone who isn’t your “friend”.

i’m sure there is more to it than just that, but the brain is foggy today … and … come on … that is huge.

i need to focus on learning as soon as i get back… the more time i spend with it, the more i am in-love with it and i wanna help the team… i wanna feel useful.

devhindo, to golang

I'm looking for a remote GoLang job
Here's my GitHub: https://github.com/devhindo
Also, any insights that would help me land a job would be appreciated. I have projects listed on my GitHub and I know Go very well but idk what to do else
#go #golang #backend #software #jobs #HashyJobs #hiring #remotejobs #remote #backend

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

Just tossed up a post on how to use VulnCheck's new free community (extended) KEV and NVDv2 #CVE APIs in curl and go: https://rud.is/b/2024/03/23/vulnchecks-free-community-kev-cve-apis-code-golang-cli-utility/

It also introduces a small #Go CLI utility I made to get both extended KEV and NVDv2 CVE data back in one call (code @ https://codeberg.org/hrbrmstr/vccve).

Wisesnail, to goodomens
@Wisesnail@mastodon.social avatar

Magician!Aziraphale is the cutest thing ever! 💙
(The truth is, I painted this some time ago and forgot to post it, ops!)

#Aziraphale #MichaelSheen #Angel #GoodOmens #GO #GoodOmens2 #GO2 #Wisesnail #Portrait

SenseException, to golang German
@SenseException@phpc.social avatar

When I did my multilanguage SQL/ORM talk many years ago, GORM was one of my choices for the #Go / #Golang parts.
https://github.com/go-gorm/gorm
#ORM

8rix, to LEGO French

3 votes to go for my Legoban !
We're very close to reach the Lego Ideas first milestone, would you mind spread the word?
Please support on https://ideas.lego.com/projects/40333b82-e8a0-4f31-8a13-307ca9ea36cc

#lego #bricks #moc #go #goban #gogame #strategy #strategygame #boardgame #joseki #fuseki

shalien, to pokemon French
@shalien@projetretro.io avatar

Absolument aucun respect.

shalien,
@shalien@projetretro.io avatar

@Mikie1600 J'ai aussi une version obscure capturée après avoir battu Giovanni. Celui-là viens de l'événement de ce week-end, troisième raid enfin une capture est ... Grosse déception. Du coup pour me venger je l'ai appelé Findus :D

J'ai rien contre le grind de #go mais j'ai pas le courage d'enchaîner la team rocket ou les raid pour les bonbons pour la méga énergie donc ça restera juste un trophée sur l'étagère

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • ethstaker
  • osvaldo12
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • tacticalgear
  • cisconetworking
  • normalnudes
  • anitta
  • provamag3
  • Leos
  • lostlight
  • All magazines