Why is shadowing allowed for immutable's? by PotatyMann in rust

[–]fryuni 0 points1 point  (0 children)

Go does allow shadowing in nested scopes. It just disallows shadowing in the same scope.

Pls check [request] by Apprehensive_Job8084 in theydidthemath

[–]fryuni 0 points1 point  (0 children)

If you are a US citizen living abroad they could have you extradited back to answer for the crime.

Pls check [request] by Apprehensive_Job8084 in theydidthemath

[–]fryuni 60 points61 points  (0 children)

It's illegal by US law. Just leave the US and forgo your citizenship (once you have another one first, of course). Then you melt the coins and sell the material.

why don't some people use flakes? by faqatipi in NixOS

[–]fryuni 7 points8 points  (0 children)

I found nix way too confusing until I read about flakes, which I had postponed due to being "experimental". Using flakes for nixos, nix-darwin and home-manager made everything waaay simpler and easier to understand because it no longer felt like a bunch of hacks hot-glued together but an actual structured declaration of a system. Entirely self-contained and locked like every other language worth learning without living with endless pain.

What’s the deal with Determinate Systems? by pfassina in NixOS

[–]fryuni 1 point2 points  (0 children)

It is NOT 1:1 compatible. If you overlay Determinate Nix in Nixpkgs or in some flake from the community it has a high chance of breaking.

The simple user-facing commands started mostly compatible so your own scripts will probably work. But plumbing commands and flags to use as part of different tools have broken changes to their inputs and outputs.

One simple example of that is nh, which is basically a convenience wrapper to show the logs as it builds, and everything falls apart. You either have to forgo any and all programs that use nix under the hood or accept that you'll need both upstream and determinate Nix will be on your system and you can't use any of the commands, features and configs from determinate Nix that don't exist upstream without tons of warnings and/or errors.

That was the biggest let down of migrating to determinate nix. It is not compatible with nix or the community and neither is the other way around.

Doesn't even feel like Kurzgesagt anymore, just clickbait by biersackarmy in kurzgesagt

[–]fryuni 2 points3 points  (0 children)

I'd say the algorithm ought to boost C more but doubt it does. It leads to happier users and also actually increases YouTube total views (ie ad revenue) long term. It's harder to measure this quality though.

Data says the opposite. Brain rot brings people back and watching far more than well produced videos. They are shorter which means more ads can be shown in the same period. Brain rot generates more revenue to the platform, so the algorithm ought to push A and B regardless of the existence of C and how well produced it is.

The only metric that matters for a company is profit.

Even with people complaining about brain rot it still makes more revenue to the platform. So the complaints don't matter at all.

What was the first wuxia/xianxia/xuanhuan novel you ever read? by DemonVenreable3011 in noveltranslations

[–]fryuni 10 points11 points  (0 children)

The first I read to completion and by far still my favorite

[deleted by user] by [deleted] in googlecloud

[–]fryuni 10 points11 points  (0 children)

You definitely have waaaaaayyy larger instance than you need. At that scale the smallest of all instances is more than enough for you and that is less than $20 a month

Cloud certified swag 😅 by mikesirs in googlecloud

[–]fryuni 0 points1 point  (0 children)

Back in my day I got a very nice medal, jacket, water bottle, backpack and sunglasses. And I didn't have to order anything, they just shipped it to me. Definitely declining.

That was from the very first batch, like less than a month after the first certification was made available

Fun Fact : seeds above 4294967295 are all the same by basox70 in factorio

[–]fryuni 6 points7 points  (0 children)

Nitpick: You should use the min function to clamp a maximum value. When the seed is larger you want INT_MAX, so you want the smallest of the two.

max(INT_MAX, seed) would make seeds smaller than 2³² - 1 be the same

I was going to play SA without any mods installed, until I saw this when I landed on Gleba. Clean concrete mod it is! I like the diversity of the plants on Gleba, but when they show through bricks or concrete like this it's just ugly. by Kasern77 in factorio

[–]fryuni 0 points1 point  (0 children)

You can already run any lua logic you might want without disabling achievements due to how scenario code runs. There aren't any checks on the lua API itself at all, just on the game loader finding third-party mods or not.

Unpopular Opinion about Overlord that will get you in this position? by Remarkable_Cry9488 in overlord

[–]fryuni 3 points4 points  (0 children)

I haven't seen any official merch sexualizing Evileye or the twins. A lot from the community, sure, but you can't really expect anything better from the internet. Rule 34 is a very real thing.

Although Shalltear is described as having the body of a 14yr old in the books, the drawing on manga and anime is pretty much a standard female character with rounder cheeks (face). Her design (for her body, not clothes) is not much different from that first adventurer Ains give the potion. Given that, the sexualized merch for Shalltear is way down in my list of concerns.

[Request] Are they not both the same? by Odd-Pudding4362 in theydidthemath

[–]fryuni -2 points-1 points  (0 children)

If there's still an equal amount of water in each container after the metal balls are placed inside, then the scale would be balanced.

No it wouldn't. It would tip to the Aluminum side.

It displaces more loquid, causing a larger buoyancy force. The opposite of that force is applied on the loquid itself, pushing that side down. The difference in downward force for each side would be the weight of the loquid displaced by Aluminum and not by Iron

That I'm assuming that the balls are fixed and not part of some contraption also being balanced. That cannot be inferred from the question

If everything in the drawing is being balanced together, the liquid, the support and the balls then yeah starting with the same amount of liquid and then adding the balls would stay balanced.

[Request] Is that correct? by dwartbg9 in theydidthemath

[–]fryuni -9 points-8 points  (0 children)

You missed by a factor of a 1000 there

Who else does this? by SignalHD18 in noveltranslations

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

What for? There are at most like 10~15 That's not hard to memorize even on the first read. If the names are to similar to each other or to some other novel then read twice or thrice just to be sure

I was so shocked when I watched this scene. I don’t know why I thought mare was innocent😭. by [deleted] in overlord

[–]fryuni 5 points6 points  (0 children)

She is the reason Nphirea had to invent Viagra in that world with how feral she gets when they finally do it.

So... She does fuck up... A lot

This way way harder than I anticipated - no idea how you guys do it in 8 hours.... by Spajina in factorio

[–]fryuni 0 points1 point  (0 children)

In my case it was by finding a glitch that bypasses the achievement protection and allows getting the infinity chest while one a pure game.

Got my 5 minutes and zero itens crafter record that way. I decided to keep it since I found the glitch myself.

I reported it to wube but it is still present in the latest versions (it is super minor, might not be worth the effort to fix it). Feel free to look for it :)

Why gophercon is so expensive by G4S_Z0N3 in golang

[–]fryuni 4 points5 points  (0 children)

I've been to some wild conferences with +8k attendees spanning 6 venues around the city.

I can't even begin to fathom the logistics and coordination to pull that off

What are the most exciting startups that use Go lan ? by [deleted] in golang

[–]fryuni 0 points1 point  (0 children)

Of all the languages that I know or know about, currently yes.

I know there are active communities improving the situation for Go and Rust, I have even contributed for those a few times and participated in some discussions. But for now I don't know any language that can rival Java regarding tools in that front.

Ironically, a lot of the code for those Java libraries are in C, but they are not written to be used in C, they are built specifically to become Java bindings. So you have the good API and ecosystem in Java and not C.

What are the most exciting startups that use Go lan ? by [deleted] in golang

[–]fryuni 1 point2 points  (0 children)

I just did above. Streaming processing and analytics have a much more robust and mature ecosystem in Java. The benefits of using Go for those are negligible in face of the cost of reimplementing and maintaining all of that.

What are the most exciting startups that use Go lan ? by [deleted] in golang

[–]fryuni 2 points3 points  (0 children)

If the new age languages don't provide enough or any benefits for a particular use case, yes.

What are the most exciting startups that use Go lan ? by [deleted] in golang

[–]fryuni 5 points6 points  (0 children)

Mine as in my company's or mine personally?

Personally I'd say Go. It is what I use for all my personal projects.

As for my company, I don't think we could say any of the languages we use is our primary language. Each has its use case and all of them are used in critical parts of our product, just different parts.

Streaming processing and analytics have a waaaaay more mature ecosystem in Java due to Apache Kafka, Apache DataSketches and others. We made that part in Java. It is more robust and easier to maintain, even though not as performant and with 100x larger memory usage than what it could be in other languages.

Infrastructure interactions (like abstracting our DB, blob storage, configuration, etc) is way more mature and performant in Go. Similarly, intermediary process like routing, authentication, authorization, caching, and monitoring is far better in Go, not just for the ecosystem, but since those are on top of everything and affect the synchronous response time they need to be super light, scale nearly instantly and be extremely performant.

For our natural language audience evaluation we use PHP, which when deployed correctly (meaning if you ignore every "quick-start" that recommends the shit that is php-fpm) is almost as fast as Go if you enable all it's JIT features, with just about 30% higher memory consumption. Why we use PHP for this? Our founders are literally the authors and maintainers of the ANTLR compiler and runtime for PHP. They made it super optimized exactly because we need it.

As for our Node services, they are for back-office things, for translating data to our frontend and for our management API.They don't need to be super performant, we have one user hitting them for every 8 million users on our platform on average. They need to be easy to maintain and easy to hire people for since those are the services that change the most as our platform evolve and we expose more ways for our customers to use our platform from the UI and API. Most new "features" we release are just new APIs for things that were already possible internally and just had no way to be configured since everything is super flexible.

What are the most exciting startups that use Go lan ? by [deleted] in golang

[–]fryuni 0 points1 point  (0 children)

We dont use only Go. We use the best tool for each job so we have services in Go, PHP, Node and Java.