ryguw

@ryguw@fosstodon.org

Software engineer. Obsessed with progress. Force multiplier. Glorified mechanic. Algorithmic explorer. Pandemic survivor. I write about tech and code 🐘 Building products at Bird (formerly MessageBird). Previously long-serving at Mollie Payments & co-founder at Collect Trading 🌍 #BuildInPublic #ReactJS #NextJS #TailwindCSS #RustLang #TypeScript #ReactNative #NewBuilds #Algorithms #Python #GoLang Amsterdam

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ryguw, to apple

On Feb 1st, 2024, #Apple released Pkl. Pronounced "pickle", it is a complete configuration scripting language, including a JSON/YAML/XML/more compiler, a language server, bunch of IDE plugins, and of course direct bindings for your favorite programming language, for quick adoption. A #Python binding seems missing.

I like how a Pkl config's specs and values are colocated. Always hated maintaining separate schemas for very simple configs.

#pkl #json #yaml #java #kotlin #golang #go #config

ryguw, to golang

Question: If I care about msec performance, should I avoid generics in Go?

ryguw, to php

A programming language benchmark that includes many of my favorites: #php #nodejs #ruby #python #c #swift #rust #go #java #zig #perl #mojo #bun #elixir

Check out that graph. The results surprised me a little bit. https://github.com/attractivechaos/plb2

ryguw, to golang

After two decades programming in many different languages, I can affirm that my single biggest reason to like is that don't write over-the-top abstractions. No other mainstream language has been able to prevent developers from accidentally overcomplicating, or even mentally abusing, their future selves and others through unwieldy architecture. keeps it ugly but simple.

That said, I'm looking forward to future syntax improvements.

ryguw, to golang

Important changes coming up in 1.22: No need to shadow loop variables anymore. Range over integers. Profile-guided optimization can make your production binaries 14% faster.

Read more: https://antonz.org/go-1-22/

ryguw, to rust
ryguw, to philosophy

The more you know, the more you don’t know.

michaelsteeber, to random
@michaelsteeber@mastodon.social avatar

I’ve had tiny software stuck in my head lately. Not just tiny as in widgets, but tiny in the context of tiny hardware as well. There’s something really appealing about this, nostalgia aside.

ryguw,

@michaelsteeber kind of reminds me of those outer screens on android fold/flip phones, they’re almost like a different os

philiph, to golang
@philiph@hachyderm.io avatar

Writing some after 4 solid years of . It's slow going. What do you mean I have to recompile after every change?!?

ryguw,

@dazfuller @gc @philiph any reasons to prefer a compiler over a static analyzer in this regard?

ryguw, to python

And a few bonus tricks to speed up your application:

  1. Don't print() anything until the end
  2. Use sets instead of lists
  3. Use dicts instead of lists
  4. Don't forget to break a loop when the objective is reached (good enough), loops don't always have to finish
  5. When working with multi-dimensional data, try to determine which index ranges really need to be looped over

Know any tips that should be on this list? 🫵

danderson, to random
@danderson@hachyderm.io avatar

A week later, can confirm: that terrible soreness from the first week of exercise after being idle for years? Completely gone now. Now I only feel the effort during a workout, not for a bunch of days after. This is much nicer.

ryguw,

@danderson Yup. It’s called DOMS and our bodies get used to exercise quite easily. As if they’re made to move and lift a huge amount on a daily basis… 😄 Same seems true for the brains: after being a long programming hiatus, I definitely felt some brain DOMS the first two days.

carlton, to random
@carlton@fosstodon.org avatar

So,

  1. "zero downtime"
  2. "scale to zero"
    3 ...

Is there a third Ooh-I-want-this, that conveniently happens to feature the word "zero"?

ryguw,

@carlton zero config

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