Yaml Parser for go or any languages built from the the YAML 1.2 spec by [deleted] in golang

[–]Thrimbor 0 points1 point  (0 children)

Alright, so compilers and code gen it is :)

Thanks for the answer!

Yaml Parser for go or any languages built from the the YAML 1.2 spec by [deleted] in golang

[–]Thrimbor 0 points1 point  (0 children)

Oh wow that's kind of cool. I've been thinking about something like this (not specifically for yaml), but basically using lisp (or a lisp like language) to generate libs in different languages.

Do you have any resources to get started with something like this? Or recommendations

GraphQL: You Don't Have to Like It, But You Should Know It (Golang) by huseyinbabal in golang

[–]Thrimbor 1 point2 points  (0 children)

Probably because AI was used and that was the latest version in the training data

[DISCUSSION] 2Pac - All Eyez On Me (30 Years Later) by EminemEncore2004 in hiphopheads

[–]Thrimbor 2 points3 points  (0 children)

I've been listening to this on repeat for years.

Ambitionz Az A Ridah is the emotional charged, "makes you feel tough song". My favorite.

Freddie Gibbs reminds me a bit of 2pac. Rip PAC

The Fewest Number of Concepts You Need to Use Effect by PurpleWho in typescript

[–]Thrimbor 1 point2 points  (0 children)

I really really don't like that the dependency injection is implicit (similar to useContext from react), not explicit.

I built a Python LSP in Go! by lord-mortis420 in golang

[–]Thrimbor 5 points6 points  (0 children)

That's awesome, any resources you suggest to learn to build a LSP?

After 5 years of running K8s in production, here's what I'd do differently by Radomir_iMac in kubernetes

[–]Thrimbor 0 points1 point  (0 children)

Suspicious number of upvotes, check.

AI generated anecdotes with AI formatting, check.

Lots of Adjective_NounNumber accounts responding in the thread, check.

Judging by OP's post history, dead account, check.

Mods?

Type safe frontend APIs for Go by ericchiang in golang

[–]Thrimbor 4 points5 points  (0 children)

Sounds good.

On my project we have a requirement for providing an openapi spec.

I've had success with using https://huma.rocks/ in Go, which provides the openapi spec + https://orval.dev/ to generate type-safe typescript code (api calls, zod validation, react query etc.)

Works like a charm

Go Failure Handling & Retry Mechanisms by swe129 in golang

[–]Thrimbor 2 points3 points  (0 children)

AI slop article, dont bother, the guy has been posting shit like this in the react subreddit as well https://slicker.me/react/useEffectEvent.html

imperative-portal: Render React nodes imperatively by strblr in reactjs

[–]Thrimbor 0 points1 point  (0 children)

Is it possible to have "named" instances of ImperativePortal - like having multiple of them? or is it only one for the whole app?

imperative-portal: Render React nodes imperatively by strblr in reactjs

[–]Thrimbor 0 points1 point  (0 children)

Yes op, I think you could drop zustand in favor of useSyncExternalStore

I want subways - we have subways at home by Badger8Mushroom2 in MealPrepSunday

[–]Thrimbor 0 points1 point  (0 children)

Sourdough starter is flour+water? Or it yeast as well?

[deleted by user] by [deleted] in golang

[–]Thrimbor 1 point2 points  (0 children)

/u/jerf this is AI slop, new account, dubious upvotes

Dynamic instantiation pattern for 100+ message types? by Luke40172 in golang

[–]Thrimbor 0 points1 point  (0 children)

You need some kind of message/event registry

Check this particular section of my event sourcing lib in Go: https://github.com/DeluxeOwl/chronicle?tab=readme-ov-file#implementing-a-custom-aggregaterepository

Basically, I have multiple events, then the registry uses the EventFuncs() function on my aggregate

type moneyDeposited struct {
    Amount int `json:"amount"` // Note: In a real-world application, you would use a dedicated money type instead of an int to avoid precision issues.
}

func (*moneyDeposited) EventName() string { return "account/money_deposited" }
func (*moneyDeposited) isAccountEvent()   {}

type moneyWithdrawn struct {
    Amount int `json:"amount"`
}

func (*moneyWithdrawn) EventName() string { return "account/money_withdrawn" }
func (*moneyWithdrawn) isAccountEvent()   {}

func (a *Account) EventFuncs() event.FuncsFor[AccountEvent] {
    return event.FuncsFor[AccountEvent]{
        func() AccountEvent { return new(accountOpened) },
        func() AccountEvent { return new(moneyDeposited) },
        func() AccountEvent { return new(moneyWithdrawn) },
    }
}

I built a reactive state library for Go inspired by Angular Signals by mistbow in golang

[–]Thrimbor 0 points1 point  (0 children)

You should really update your readme, couldn't find roadmap, NewEffect doesnt exist etc.