preslavrachev, to golang
@preslavrachev@mastodon.social avatar

I hacked together a small service in It allows me to post youtube links, which it would then parse, and add autio streams to a private feed. Works like a charm, so I am happy 😊

For obvious reasons (legal, etc.), I don't plan to open-source the code and can't make a service out of it. However, if anyone is interested, let me know, I may eventually share the code on a per-request basis.

https://mastodon.social/@preslavrachev/112428014490517462

erinc, to python
@erinc@mastodon.social avatar

After an 8-year break from web development, I evaluated modern tech stacks to build my personal projects in 2024. This post chronicles my journey in selecting the perfect combination of backend, frontend, database, and hosting.

https://erinc.ca/tech-stack-2024

alyx, to golang French
@alyx@3615.computer avatar

Je vais ptete reprendre un peu le stream pour des jeux vidéos et du développement en . Je vais essayer Owncast en rentrant, ça peut être sympa et moins me faire peur que Twitch. Des conseils pour utiliser Owncast ?

kellogh, to random
@kellogh@hachyderm.io avatar

the #gpt4o news is cool, but now i want to see an embedding model that i can use with a streaming interruptible conversation

kellogh,
@kellogh@hachyderm.io avatar

also, now with , latency is going to be critical if you’re doing streaming audio/video, so may start looking less appealing. what’s the new language? ? ? ? ?

ankit, to emacs
@ankit@emacs.ch avatar

I ran into some go code that use build tags. My existing test functions didn't work. To handle build-tags, I defined go-build-tags in .dir-locals.el and used the variable in my functions.

((go-ts-mode . ((go-build-tags . "device,json1"))))

https://git.argp.in/ankit/dotfiles/commit/c5c165c830f9f61c88d366b8a01efb083ea4c97a

cdrmack, to cpp
@cdrmack@fosstodon.org avatar

After 10 years of commercial experience in #cpp I think I’m ready for a new chapter. I have played around with #rust #golang #zig and #clojure but most job offers that I see are for people with at least X years of commercial experience in this exact languages. Do you have any hints how to approach this? I would think that my previous experience as a #software engineer would matter. Especially since I do not expect to move to another senior role, I’m checking junior positions too. #jobsearch

kali, to golang
@kali@cyberpunk.lol avatar

hey @vantablack are bots allowed on cyberpunk.lol? like if i wanted to host a fork of @yuribot that posts femboys... would that be allowed?

im open to slowing down the time between posts and stuff like that, and it wont be ready immediately coz i know jack about and im no expert at bot development

if not all good, im already in the process of making a BotsIn.Space account

outsidecontext, to golang
@outsidecontext@fosstodon.org avatar

As part of some side project using I implemented the musicbrainzws2 package. It wraps the web service and search API into a Go friendly interface.

The package is I think rather feature complete, but likely there are bugs and in the current state I reserve the freedom to change the interface at any time as I see fit. But maybe you want to give it a try if you need to access the MB API with Go.

https://pkg.go.dev/go.uploadedlobster.com/musicbrainzws2

ks982579, to golang
@ks982579@techhub.social avatar

Level up your programming skills with Go! ⏫

My main focus for my Master's in Computer Science has been on Rust, but I'm always looking to expand my skillset. That's why I'm excited to dive into the Golang Programming bundle by hashtag on Humble Bundle. This bundle offers a great opportunity to learn Golang, a powerful open-source language gaining traction in the tech industry. I'm particularly interested in the "Go Programming - Beginner to Professional" book, which seems like a perfect starting point for anyone new to Go, like myself.

Is anyone else exploring Golang?

Feel free to share your experiences or learning resources in the comments below!

https://www.humblebundle.com/books/golang-programming-packt-books

khalidabuhakmeh, to golang
@khalidabuhakmeh@mastodon.social avatar

Doing some today.

gopher dancing GIF

wyri, to php
@wyri@haxim.us avatar

Kinda forgot how much fun it was to write code stitching map tiles together, and also how easy it was. Currently at 82 lines of . Once finished it will be a new package, as the has some massive glaring bug in it that took me 6 years to find. Sprinkling some threads and over this once it's done. The home clusters fans will sing once more

buherator, to golang
@buherator@infosec.place avatar

This latest writeup by @joern mentions the of Go’s filepath.Clean is “not really obvious” when dealing with relative paths.

I think this is something all devs should be aware of to avoid similar vulnerabilities.

The language is kind of amazing:

  • Step 3. only applies if there is a parent path to be eliminated together with the subsequent “..” (“/foo/..” -> “/“)
  • Step 4. only applies to “rooted” (absolute) paths, so “/../foo” would become “/foo”, but “../“ is left untouched (as there is no relative parent path to eliminate either).

This makes the docs technically correct (“the best kind of correct!”), but even with the solution at hand it took some head scratching to figure out the true meaning.

excds, to golang
@excds@berlin.social avatar

For a work project it seems we will have to implement a library for building/evaluating ODRL statements. Since I haven't previously started such a parser library project, I would like suggestions on projects I could look at for inspiration in

  • Ease of use in interfaces
  • Test structure
  • Generally nice code

Please post links to projects you think are nice to use. Oh, and please boost for bigger reach.

dusnm, to golang
@dusnm@fosstodon.org avatar

Writing a spec compliant implementation of a server that receives webmentions in .

Making sure I cover all edge cases is so time consuming...

mort, to Kotlin
@mort@fosstodon.org avatar

I can't deal with languages with optional semicolons! I like languages without semicolons, but when they're optional, especially if they feel "C-like", I always end up adding semicolons to some lines even when I try to write in a semicolon-less style. I'm writing some now and I decided to just use semicolons consistently because the alternative is seemingly to use them inconsistently.

Strangely, this isn't an issue I have in . I do have it in however.

TehPenguin, to rust
@TehPenguin@hachyderm.io avatar

When posting your programming language comparison article, can you please include the context of your comparison?

"Rust vs Python, which is better? "
"Sir, this is a kernel"

"Why I switched from C++ to Go"
Taps sign: "No GC or green threads in the kernel"

Sincerely, a systems dev who'd like to remind you that APIs existed before REST...

mackuba, to ruby
@mackuba@martianbase.net avatar

Current status: I opened about 100 links to articles and threads from Google results comparing , and and I'm planning to read them 🫠

(no, I'm not really considering Go, mostly just trying to convince myself that I'm not making a mistake starting to learn Rust and not Go 🦀😛)

mackuba, to golang
@mackuba@martianbase.net avatar

It's insane that I can have a conversation with this thing and in a few moments and a few back and forths build a working program in a language I know nothing about (I don't know Go)… don't tell me this isn't huge 😳

You: One modification - this current code counts all matches of all regexps against the text. So if one line of text matches two or more regexps, it will be counted as 2 or more. I want a given line of text to only be counted once if it matches
You: What's the command to compile this to a binary? ChatGPT: To compile a Go program to a binary, you can use the go build command followed by the name of the Go file you want to compile. If you want to specify the output binary name, you can use the -o flag followed by the desired name. Assuming your Go file is named main.go, you can compile it to a binary named my_program like this: You: Looks like
You: Great, that works 👍 Is there some way to compile this program in "release mode", with a more optimized version or something? ChatGPT: Yes, you can compile your Go program in release mode with optimizations using the go build command with the -ldflags flag set to -s -w, and the -trimpath flag set to remove the build path from the resulting binary. Here's the command to compile your program in release mode: You: I mean, not optimizations for binary size, but optimizations to make it faster? ChatGPT: Ah, I see! In Go, optimization for speed primarily comes from the compiler's default optimizations, and there isn't a direct flag to enable additional optimizations beyond what the compiler already does. However, there are some general principles you can follow to improve the performance of your Go program: Profiling: Use Go's profiling tools (go test -cpuprofile, go tool pprof, etc.) to identify bottlenecks in your code and optimize them. Profiling helps you understand (…)

publicvoit, to programming
@publicvoit@graz.social avatar

What happens, when you join two paths in a language when the second one is an absolute one?

join("foo", "/bar")
returns "foo/bar" or "/bar"?

The wonderful @meisterluk wrote a great article about that you might want to read: https://lukas-prokop.at/articles/2024-05-03-filepath-join-behavior

I can not tell what version I'd actually prefer. There are situations where both versions would be "proper".

#C++

changelog, to opensource
@changelog@changelog.social avatar

🦾 New Changelog & Friends!

Our friend @deadprogram joins @jerod & @adam to discuss:

🎈 high-altitude weather balloons
🧑‍🚀 Human life on Mars
🤔 Zeno’s paradox applied to ML
🎶 open source the Wu-Tang way
➕ and much more!

This is a good one, enjoy! https://changelog.com/friends/42

markus, to golang
@markus@hachyderm.io avatar

I released a new version of my module for persistent message queues based on today. I added a basic job runner, since that’s one of the things I most use a queue for. Check it out at https://www.goqite.com

ferki, to gentoo
@ferki@fosstodon.org avatar

I'm going to host an online workshop for the Gentoo e.V. on 2024-06-15 about how to "Host Gentoo dependency tarballs as GitHub releases".

I'll show how to use GitHub for dependency tarballs as an external , such as a proxied maintainer, a GURU committer, or an overlay .

I use this approach to package software, and it can be applied to other similar situations, or even automated through local scripts or GitHub Actions.

https://gentoo-ev.org/news/online-workshops-2024/

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

One more time, I've made my way to the Golang Weekly newsletter! Thanks for featurng my random ramblings on Go 🙏

https://golangweekly.com/issues/505


#newsletter #programming #golang

fallenhitokiri, to golang
@fallenhitokiri@social.screamingatmyscreen.com avatar

Bubble Tea for is the first TUI library I touched that doesn’t make me regret writing a TUI.

The examples, documentation and video tutorials also make it super easy to get started or stitch together the parts you need.

Overall this is just a really good library from a developer perspective.

rsc, to golang
@rsc@hachyderm.io avatar

“Evolving the Go Standard Library with math/rand/v2”
https://go.dev/blog/randv2

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