hrefna, to golang
@hrefna@hachyderm.io avatar

Some notes on , this is purely my personal opinion and not representative of my employer's take in any way.

When golang was first released there were several things that Rob Pike in particular seemed to think about it:

  1. A replacement for C++ and Java for server systems

  2. Good for large, scaled engineering teams. The sorts of teams with lots of moving parts

  3. Effective for large amounts of data processing, especially the sort you do in web environments

https://go.dev/talks/2012/splash.article

1/

anderseknert, to Kubernetes
@anderseknert@hachyderm.io avatar

> The Go monorepo is the largest codebase at Uber, comprising 90 million lines of code (and growing)

Come again? The project is 4 MLOC, the Kernel is 17.5 MLOC. How on earth is a fucking taxi app 22.5 times the size of Kubernetes?

https://www.uber.com/en-SE/blog/nilaway-practical-nil-panic-detection-for-go/

louis, to webdev
@louis@emacs.ch avatar

In the last few days I’m experimenting with substituting CRUD API code with Stored Procedures which directly produce the endpoints JSON as a single-row scalar value. API is then just a wrapper that authenticates, validates input and streams the DB’s JSON directly to the client.

  • No ORMs, no SQL generators etc.
  • All SQL is where it should belong: in the database
  • API does only single „CALL myfunc(…)“ db calls
  • A simple centralised error handler can accurately report errors from the database
  • No weird mixed row/json columns scanning into structs and re-marshalling everything to JSON
  • Codebase is collapsing to 20% (by LOCs)
  • Stored Procedures can use wonderfully declarative SQL code
  • Response times in the microseconds, even for multiple queries, all happens inside the DB

More side effects:

  • the data model can change and evolve without touching the API at all
  • Zero deploys mean zero downtime
  • the API application is so tiny, I could easily switch it to any programming language I want (yes, even Common Lisp) without worrying about available databases libraries, type mapping and rewriting tens of thousands of lines of intermixed language/SQL-code.

The general direction of the dev industry is heading in the opposite direction. More ORMs, more layers, more database abstraction. More weird proprietary cloud databases with each their own limited capabilities and query language.

So you tell me: Is it crazy? Is it wrong? Why do I have doubts despite everything working out beautifully?

fell, (edited ) to programming
@fell@ma.fellr.net avatar
defcon201, to devops
@defcon201@hostux.social avatar
vwbusguy, to programming
@vwbusguy@mastodon.online avatar

Using #golang for a project since the SDK has really nice structs and instantiators for all the API calls where the #Python SDK for the project just phoned it in for all the payloads.

ramsey, to php
@ramsey@phpc.social avatar

This article is all about how things are looking great for hiring Laravel devs in 2024, and I’m not seeing it.

I’ve been job-searching for 3 months, and very, very, very few of those jobs are decent-paying / jobs. Sure, PHP/Laravel jobs exist, but most (anecdotally) pay far less than the rate others are willing to pay for , , , , , , and developers.

The industry does not value the output of PHP developers.

https://laradir.com/blog/why-laravel-could-see-a-huge-rise-in-adoption-in-2024

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

This is interesting, especially as someone who does . Maybe I should learn some , , or .

hrefna, to golang
@hrefna@hachyderm.io avatar

Dear #golang, please stop telling me/others that "clearly you haven't worked in a large codebase" if we express any sort of distaste for go.

If you want me to run screaming from your language community, talk like this.

I wish this were just a one off, but I see this sort of comment all of the time with golang specifically.

I've maintained large code bases before go was invented and I have criticisms of go directly tied to that understanding. It doesn't make go bad, but it also isn't absolute

anderseknert, to golang
@anderseknert@hachyderm.io avatar

Anyone hacking #golang code aware of any #JSON marshaller implementation that will let me have any say in what's "pretty"? The default one is waaay to spacious for anything but the most simple of objects. I can't believe I'm coming up with nothing searching for this. Kinda hoping it's just me being a boomer with no idea about how to use the internet? Please say it's so.

louis, (edited ) to badminton
@louis@emacs.ch avatar

Setup a simple HTTP server from stdlibs that responds with a simple "Hello, World" string, no logging.

10s load test run on MacBook Pro M1 (using hey).

LispWorks 8 (Hunchentoot): ~11k req/sec
Racket 8.9: ~15k req/sec
Clojure 1.10 (httpkit): ~28k req/sec
Janet 1.29: ~35k req/sec
SBCL 2.3.4 (Hunchentoot): ~44k req/sec
Go 1.20: ~120k req/sec

#LispWorks #SBCL #CommonLisp #Racket #Golang #janetlang #clojure

mburr, to mastodon

How do I run a simple, comprehensible instance? I'm not crazy about setting up and installing the usual server. I have simple needs and want to experiment with my own instance.

It would be great if such were written in . But I can hold my nose and use a different modern compiled language.

I do know how to search the web. I do! But it's easy accidentally to waste time on something hopeless.

I'll happily be the only user and tolerate jankiness.

alyx, to golang
@alyx@3615.computer avatar

People working on applications: I want to pick a way to make SQL queries (most likely SQLite and/or Postgres) but I'm totally lost with the many options available. Do you have any recommendations please? 🙇
It's for a web app, a smallish Activity Pub social network.

So far I have:

thomas, to fediverse
@thomas@metalhead.club avatar

This tool lets me monitor the #ActivityPub federation traffic from/to my Mastodon instance metalhead.club.

You can clearly see the other server locations - mainly in the US and Europe.

The tool is not ready for the public, but once it's finished and stable, I'll let you know :)

#golang #federation #mastodon #fediverse

Video is showing a 3D globe in a web browser. Colorful arcs across cities in the globe show active ActivityPub connections.

steely_glint, to Java
@steely_glint@chaos.social avatar

I want to write a very simple web socket service that just passes json messages between connections (think chat but not).

My fave language is - but j2ee is just too much cruft config and layers.

I can't face using python ever again...

So it may have to be .

Background - I need > 100k connections, client certificates for auth and the messages are stateless.

No cloud - I can't afford it.

Recommendations ?

louis, to golang
@louis@emacs.ch avatar

Go, a modern language, invented in 2009 by Google:

=> runtime error: invalid memory address or nil pointer dereference (let's crash)

Common Lisp, since 1984 by many:

=> NIL (I'm fine)

#golang #commonlisp

beausimensen, to golang
@beausimensen@phpc.social avatar

Has anyone worked with #golang, #nix (with or without nix-shell), and #JetBrains GoLand?

My first passes at researching this doesn't show me many promising results. Some vscode discussion suggest launching vscode from the CLI after entering the shell.nix-enabled project directory, but not sure how I feel about that.

melroy, to golang
@melroy@mastodon.melroy.org avatar

I try to learn Golang, just because. To load a go module locally I need to manually update my go.mod file via go mod edit -replace command. Result: replace example.com/greetings => ../greetings. I hate Go already.. I hate it. Don't get me started on enums/unions. Error handling: err != nil ;). Ps. Hello world binary contains debug symbols by default and is 4MB.
I think I stick with C, C++, I even dare to say JS with Bun and whatever not.

Should I really give Go another try?

#golang #go

preslavrachev, (edited ) to programming
@preslavrachev@mastodon.social avatar

There are two types of Go developers: those who … and those who …

Which one are you?

philiph, to golang
@philiph@hachyderm.io avatar

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

synlogic, to golang
@synlogic@toot.io avatar

quality of a better programming language:

  • compiler is your Best Fren

quality of a worse programming language:

  • compiler is your Frenemy

The former:



vs

The latter:
#C



matdevdug, to rust
@matdevdug@c.im avatar

I am baffled by how much trouble I’m having at writing at a decent clip. I felt pretty good at after a few months, same with and . Meanwhile I’ve been trying to write anything useful in Rust for months and it’s so incredibly slow going.

I’m shocked people are enthusiastic about adopting this for their jobs. If I had a specific part of an app that needed more speed, absolutely. But as a general purpose language? I’m not seeing it yet.

I’ll keep ramming my head against it but have not enjoyed myself thus far. If writing a proof of concept in python takes me 4 hours, rewriting that in rust clocks in easily at 12-16 hours.

bitprophet, to python
@bitprophet@social.coop avatar

That sinking feeling that it's gonna be real hard going back to #Python, or even other compiled languages like #Golang, after having already gotten so used to the comforting embrace of the #Rust compiler.

gregorni, to golang
@gregorni@fosstodon.org avatar

Imports in Go suck

alyx, to golang
@alyx@3615.computer avatar

What’s your favorite library in 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 👉👈

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