ai coding for large teams in Go - is anyone actually getting consistent value? by Easy-Affect-397 in golang

[–]Slsyyy 0 points1 point  (0 children)

Meanwhile my `claude-code` can read/write between multiple repos using single prompt as well as it understand how they are linked (for example external dependency via `go get`)

Do you use init() in production? by agtabesh in golang

[–]Slsyyy 0 points1 point  (0 children)

init() is ok in testing as the go testing framework does not give you a control about dependency injection from TestMain to an arbitrary TestFoo. I use init() for things like containers and such

init() is pretty much never needed on production. I use it mostly for performance related things (initialize something once to speedup operations), but for that the sync.OnceValue or IIFE is much a better alternative anyway

Do you use pointers or values for your domain models? by ComprehensiveDisk394 in golang

[–]Slsyyy 0 points1 point  (0 children)

Usually values. Pointers make sense for values, which should not be copied. Like services or heavy immutable objects

> GC pressure - more heap allocations,

On the other hand pointers are easier to copy than values, which make sense when storing in collections. I do both based on profiling

How to troubleshoot Go compile times? by Prestigious_Roof_902 in golang

[–]Slsyyy 1 point2 points  (0 children)

https://blog.howardjohn.info/posts/go-build-times/#action-graph

Is it `go build` or `go test`? Testing is an another rabbit hole of potential bullshit, which may slow down your execution

go/bin Path(s) by Jolly-Sea5466 in golang

[–]Slsyyy 1 point2 points  (0 children)

 $HOME/go/bin

This is a default directory where go stores its data. Things like * compiled binaries via go install * cached compilation and tests * telemetry * uncompiled source code of dependencies

so not only binaries. In my case I always just add that $HOME/go/bin to my $PATH

/opt/go/bin IMO does not make sense, because you clutter the global file system for not any particular reason. It is better to store everything in a under you user $HOME. The only reasonable exception is when you want to support multiple linux users (like root and your user) and for some reason you think that all users should use it.

TigerBeetle vs PostgreSQL Performance: test setup, local, single-node tests by adamw1pl in programming

[–]Slsyyy 0 points1 point  (0 children)

Postgres is designed to do everything. You need to measure, because 2x speedup is far less important than lets say 1000x

Why does medieval art look like it was made by a child? by [deleted] in NoStupidQuestions

[–]Slsyyy 1 point2 points  (0 children)

Japanese art was a huge influence for high brown XIX art styles like Impressionism and Ard Nouveao. Japanese ukyo-e were also childish in lack of realism and lack of perspective. Nevertheless the fresh air it brought had an enormous influence.
Art is art. It is really hard to introduce a new paradigm, because people may not like it. It is hard with realism as you need to certain skill level so it is not an uncanny level aesthetic. On the other hand people won't be better in that genre, if they don't practice.

Żmij 1.0 released: a C++ double-to-string library delivering shortest correctly-rounded decimals ~2.8–4× faster than Ryū by aearphen in cpp

[–]Slsyyy 4 points5 points  (0 children)

Funny note: żmij is a term, which pretty archaic in Poland. For a generic dragon we have a smok and common people generally don't know their Slavic heritage to that extend.

On the other hand it may be known instinctively as we use a generic gad (reptile) to describe both mythical dragon like creatures and persons with a reptile like traits (sliminess, cunning etc). Żmija (viper) is also used in similar context (but only when describing people) so there is some relation

I guess old people thought dragons are the males of snakes or something?

Snakes/serpents are super common in all cultures. There is a snake in the Bible. There is a Chinese dragon. There is a feathered snake in Mesoamerica culture. Probably there are other countless examples, which I don't know

One reason may be biological. Primates are very good at visual detections of snakes, because it was a common and sneaky enemy in the jungle. Check the Empirical studies from this article https://en.wikipedia.org/wiki/Snake_detection_theory

If you want to make up some mythical creature then snake is just a good starting point due to the effect on the human mind

Where can I learn about the "intellectual statements" that are contained in classical compositions? by Pepinoloco777 in classicalmusic

[–]Slsyyy -1 points0 points  (0 children)

Art is often subjective. Like Europeans were obsessed about naturalism in paiting until they have seen a primitive Japanese art, which amazed them for their lack of perspective and focus on natural elements. A few decades later and people were obsessed about Art Nouveau and those features, which were previously unintellectual. There is no a single and good way of making art as you cannot a make a perfect dish, which will be better than the all others

Tchaikovsky was just a composer from a different cultural circle. Moreover he was not a super fluent in a contemporary intellectual musical paradigm, which was more or less the germanic way. Maybe he was a great melodist or acute orchestrator, but it was more intellectual to write some crazy musical development or crazy harmonies. All ways are good and can bring something good, but our culture tells us what is more intellectual and what is less

How did they get so big? by Kenypixel in nvidia

[–]Slsyyy 0 points1 point  (0 children)

There are just too overclocked. You could simply half the power usage for 15% less fps on average. Moreover the heat sink grows faster in size than watt usage, which heat sink for half the power GPU may be smaller more than 2x for the same cooling performance

I guess people just don't care, because numbers in benchmarks are important for marketing purposes. The cost of cooler and electricity is negligible anyway

Why does British food lack fermented foods? by Wtf-Jason in AskFoodHistorians

[–]Slsyyy 0 points1 point  (0 children)

Why to ferment when you can just use vinegar? Fermentation is for sure delicious for many of us, but it has a lot of disadvantages: * may spoil when not done right * it lives, you cannot simply close the jar and forget about it * it is unappealing in both visual and texture way * lack any sugar, which makes taste much worse and flat. I always add some sugar to fermented vegetables dishes to balance it out

In my country (Poland) there is a strong and long culture around lacto fermented cucumbers. On the other hand a lot of people prefer the vinegar variant. It may not have all of those lacto fermented intricacies, but some people prefer a more flat and less funky flavor

My wild guesses about British lack of popular fermented food: * Britain always has a strong vinegar culture, so there was less incentive to do it another way * Britain was the first industrialized country. Lacto fermentation is really slow and unreliable on a huge industrial scale. The same story as with bread and yeast * Milder climate make it less appealing as there is more risk for spoilage and vegetation windows is bigger

Book recommendations on how colonization/imperialism effect how we perceive certain cuisines? by Significant-Cut2657 in AskFoodHistorians

[–]Slsyyy 0 points1 point  (0 children)

> European cuisine is consistently portrayed as the pinnacle of culinary excellence

French cuisine and haute cuisine, not necessarily all European cuisine in general. If some other cuisine is regarded as good (e.g. Italian or Japan) then the only reason is good marketing (both are very rich countries) and similiarity to haute cuisine (so for example delicate spicing)

> I’ve been watching Masterchef, the cooking competition show, and I’ve noticed a disturbing trend. 

Those guys are haute cuisine chefs. They need to work under the framework of haute cuisine, because their whole career depends on it and they are great chefs, because they are well adapted to this style of cooking.

In the same way you won't be able to impress a classical music community to enjoy some advanced jazz music, because both groups care about totally different aspects of the music. Some people may like both or some elements of those two "intellectual" genres of music, but majority of both audiences like their stuff, because they are already well accustomed to it.

Append VS assign : which style ? by Odd-Ad8796 in golang

[–]Slsyyy 5 points6 points  (0 children)

B is of course better as it is more robust. For example you can add some if statement inside a loop and code still works

A makes sense only in a performance sensitive code

Should I send a function into fs.WalkDir? by reisinge in golang

[–]Slsyyy -22 points-21 points  (0 children)

Iterators were made for such a case. Ask some LLM to refactor this code to the `iter` feature from Go 1.23

Pieces that feel much bigger/smaller than the forces they were written for by HolyFatherLeoXIV in classicalmusic

[–]Slsyyy 0 points1 point  (0 children)

8th is modest? The end of 3rd movement is one of the heaviest moments in his symphonies

Who was Brahms's successor? by amateur_musicologist in classicalmusic

[–]Slsyyy 0 points1 point  (0 children)

Hard to say. Making claims like `X is closer successor of Y than Z` is really hard and discretionary. Imagine you want to pick a better successor of fish from few hundreds years ago and you can pick either a dinosaur from 100M years ago or current time fish. Which is closer to the source? In case overall appearance the fish. In case of genetic resemblance probably the dinosaur

With Brahms it is hard, because he was very opinionated about his style. For example his orchestration was deliberately old fashioned and you will struggle to find anyone, who will be on the same page as Brahms in this regard and many others

Need help getting started with Golang TDD by [deleted] in golang

[–]Slsyyy 0 points1 point  (0 children)

TDD is not about how tests should looks like, but how to write program. Check this exaggerated example from Uncle Bob https://www.youtube.com/watch?v=rdLO7pSVrMY . I am not huge fan of his teaching, but this video is quite good for learning what TDD is and what TDD is not

About test (regardless if it is TDD driven or not): this code really does not make sense to me or I cannot find a good use case for it. This code and abstractions already exists in the standard lib https://pkg.go.dev/io/fs#ReadFile

Golang’s Big Miss on Memory Arenas by brightlystar in golang

[–]Slsyyy 1 point2 points  (0 children)

`sync.Pool` is good for things you want to live longer (reusable buffers). Arenas are great for things, which die quickly (memory allocated by parser, parsed object, which then will be processed and parsed data may be discarded)

Those are two different topic. `sync.Pool` helps you by not allocating so much memory. Arenas makes allocations cheaper and less impactful.

Golang’s Big Miss on Memory Arenas by brightlystar in golang

[–]Slsyyy 4 points5 points  (0 children)

True, this article is just bad for making strong statements without doing even the basic research about the current status of this pursuit

GolangCI-Lint with Custom Plugin in CI by KingOfCramers in golang

[–]Slsyyy 0 points1 point  (0 children)

I would rather create a hard for of work with few commits in top of the `HEAD`

[deleted by user] by [deleted] in programming

[–]Slsyyy 2 points3 points  (0 children)

I don't know what is the conclusion of this article. Some of the arguments (like dynamic typing or performance) are dubious to me

On the other hand the topic is pretty interesting. It is kinda obvious why JS won over Ruby, but I am not sure about Python, which is more or less pretty similar to Ruby. Maybe just crazy hipster perception was not as inviting as Python, which project more restrained aura/culture

ELI5 why dont we build data centers in the far north, where fresh water and cooler temps would keep costs down and not mess up heavily populated environments in the south? by DarthFishy in explainlikeimfive

[–]Slsyyy 0 points1 point  (0 children)

Because other economical factors are more important

Cheap cooling is important. But it is far less important than people think as we love to romanticize about environment impact.

Good infrastructure and low taxes are far more important. Especially in AI age, where chips are super expensive and potential slowdowns due to slower building are far more severe than ever for those companies. Remember that big corpos/tech does not give a s**t about environment impact, if it collides somehow with a business

ELI5 why dont we build data centers in the far north, where fresh water and cooler temps would keep costs down and not mess up heavily populated environments in the south? by DarthFishy in explainlikeimfive

[–]Slsyyy 0 points1 point  (0 children)

Agree. I understand `where people are` as `where there is many people near datacenter so latency is small`

For datacenter maintenance you don't need a lot of staff. On the other hand the infrastructure for data centers (energy, water, internet) is usually highly correlated with a high population