My Foray into Vlang

https://news.ycombinator.com/rss Hits: 12
Summary

Table of contents Open Table of contents A little bit about Go I like Go. I actually don’t mind writing err != nil that much. Just set up a snippet and you’re good to Go. Although, I never really felt like I had a honeymoon period with Go. I learned the language, learned about channels, wrote a bunch of CRUDs and parsers and CLIs. It always felt strictly business. I thought it was because of where I am in my career. But I was wrong. Go is vanilla. It just werks. You build it, you ship it. The language is simple and you don’t need to try hard to make it performant. But sometimes you just want a little spice🌶️🥵 Do you ever wonder what else is out there? Hobby programming is a great meme. But I feel like we’re under too much pressure to produce the new unicorn SaaS with 10 million monthly active users. You don’t have to pick a tool then find the right job for it. You can just grab a hammer and start smashing stuff. The same nails you’ve smashed before might feel different if you smash it with another hammer. Pick a Rusty hammer and you might end up obsessed with how important health and safety is. So, wtf is Vlang? I might have shot myself in the foot with the hammer analogy there, so let’s talk about ice cream. Ok so here’s the gist: vanilla, drizzle some chocolate on top, peanuts? sure why not. You know this taste, you like it, it comes with more stuff on top. If you like vanilla then you might like vanilla++. That how I see the current state of V. The syntax is similar to Go. It has extra features. The core of it is similar, you can cross compile, you have concurrency (which is also parallelism). Channels and message passing. Oh and defer as well. All my bros love using defer. Anyway, let’s see some cool stuff. External Link Globe vlang Maps // So simple! simple_languages := {"elixir": {"score": 100, "width": 30}} // Alternatively mut languages := map[string]map[string]int{"elixir": {"score": 100, "width": 30}} languages["elixir"] = {"score": 100} languages["elixir"...

First seen: 2025-08-31 07:43

Last seen: 2025-08-31 18:45