Readit News logoReadit News
elevader commented on Rust: Doubling Throughput with Continuous Profiling and Optimization   polarsignals.com/blog/pos... · Posted by u/mesto1
Blackarea · 10 months ago
I am in the midst of writing a little toy axum project for my pi and also want to measure cpu/mem performance for that. In jvm land I used Prometheus for such tasks. Is there a straight forward tool/crate that anyone can recommend for this?
elevader · 10 months ago
I'm not sure if this is what you are looking for but I found https://github.com/wolfpld/tracy to work rather well. There is an integration for the tracing crate that can get you very far: https://lib.rs/crates/tracing-tracy. If you're just looking for a very high level report then this might be a bit too much detail.
elevader commented on Seven out of 10 Europeans believe their country takes in too many immigrants   english.elpais.com/intern... · Posted by u/orcul
yurishimo · 2 years ago
I certainly understand the sentiment, but my question to someone on the "anti" immigration side would be this: what do you see as a possible alternative solution?

Populations are shrinking and to keep the economy in a healthy place, money needs to come from somewhere. The easiest solution is to add bodies via immigration. Otherwise taxes need to go up or governments need to spend money incentivizing people to start families, which will also probably necessitate an increase in taxes.

I moved to the Netherlands a couple of years ago and it's clear to me that the status quo will slowly degrade society eventually. Maybe not in my lifetime and perhaps not in the lifetimes of my future children, but not doing anything is also a decision.

I think if a country decides that it wants to go down one path that essentially leads to a "natural end" that should be their right as a democratic society, but don't try and hide your nations intentions behind flowery language about inclusivity and diversity. If some ideals are so important to the culture, then I think these nations need to be honest and start codifying more aspects of their desired culture into law or start investing heavily in social programs to foster that longing culture.

Please, I absolutely want to here some of your ideas on all sides of this issue! Right now I'm just an immigrant sitting on the sidelines waiting to see how this all shakes out.

elevader · 2 years ago
I can only really talk about Germany here, the perspective might be different in other countries. The big challenge is the large number of people coming in, both from legal and illegal immigration. Our system simply can't deal with it. Ideally you would get these people out of the asylum centers (might be the wrong term, no idea) and into jobs so they can actually start living and integrating here. But the harsh reality is that people are stuck for years, waiting for the approval process to happen at some point, and they aren't even allowed to do something useful in the meantime. This, unsurprisingly, creates a lot of tension on all sides and doesn't help anybody. Lowering the numbers might not be the best solution but at least that seems doable.
elevader commented on IBM to buy HashiCorp in $6.4B deal   reuters.com/markets/deals... · Posted by u/amateurhuman
rank0 · 2 years ago
I don’t understand people’s beef with IBM. They have been responsible for incredible R&D within computing. I even LIKE redhat/fedora!

HashiCorp had already been sold out since waaaay before this acquisition and I also don’t understand why their engineers are seen as “special”…

elevader · 2 years ago
I have the "honor" of getting to use IBM $PRODUCT at $COMPANY.

- it uses some form of consensus algorithm between all nodes that somehow manages to randomly get the whole cluster into a non working state by simply existing, requiring manual reboots

- Patches randomly introduce new features, often times with breaking changes to current behaviour

- Patches tend to break random different things and even the patches for those patches often don't work

- For some reason the process how to apply updates randomly changes between every couple of patches, making automation all but impossible

- the support doesn't know how $PRODUCT works, which leads to us explaining to them how it actually does things

- It is ridiculously expensive, both in hardware and licensing costs

All of this has been going on for years without any signs of improvement for now, to the point that $COMPANY now avoids IBM if at all possible

elevader commented on What's new in Emacs 29.1   masteringemacs.org/articl... · Posted by u/User23
ashton314 · 2 years ago
This little project of mine made the front page here a few days ago, so I’m not trying to beat a dead horse or anything, but I just want to surface it here again in case anybody finds it useful.

I have made a starter kit at leverages many of the now built-in features of Emacs 29.1. You can get very far with regards to completion, project management, language, server, etc. just by tweaking a few defaults. I have put some of these nice tweaks together in a starter kit called “Emacs bedrock“: https://sr.ht/~ashton314/emacs-bedrock/

Let me know if you find it useful, or if you have any comments or suggestions. :-) I’m still working on incorporating some feedback I got earlier.

elevader · 2 years ago
Your starter kit inspired me to finally bite the bullet and write my own emacs config from scratch instead of using doom. I'm not sure yet if I'm thankful for that, time will tell ;)
elevader commented on On Twitch, you can never log off   every.to/cybernaut/on-twi... · Posted by u/gmays
esskay · 3 years ago
Genuinely curious here as I dont think I have ever watched anyone on twitch.

Compared to software dev as an example - a very mentally taxing job, what comparable challenges do twitch streamers have?

elevader · 3 years ago
I'd guess it's similar to a job in the entertainment industry, like being a host of a TV show. You won't get very far by just sitting there playing some games, you have to be entertaining, engage with the audience, provide commentary etc. And do all of this with a happy face/mood for 6-12 hours, preferably every single day. And when you're not streaming you most likely do social media stuff.

I know of a streamer who got "big" (enough to earn a living) by playing factorio. At some point he burnt out on the game and tried different things but his audience didn't really care for that and income broke down substantially, so it wasn't sustainable anymore. So he continued playing factorio without actually enjoying that so that he could make a living for his family. Just like a "real" job.

elevader commented on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits   casparwre.de/blog/webapp-... · Posted by u/wolfspaw
cutler · 3 years ago
How do you `docker push` from your laptop to the server with consumer broadband? I've heard docker times out after about 50-75%. Great fun.
elevader · 3 years ago
This might be a "person in a country with pretty fast internet connection" opinion but I don't think I ever had that issue. Might also depend on the container size, pushing > 1GB containers might be more error prone than pushing small(ish) containers.
elevader commented on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits   casparwre.de/blog/webapp-... · Posted by u/wolfspaw
RaitoBezarius · 3 years ago
You can use something like Nix or Guix for example.

Bonus: it produces OCI images also.

elevader · 3 years ago
While this is definitely a valid option I'm not sure that introducing Nix/Guix simplifies the stack compared to using Docker. Depends on the setup and experience, I guess.
elevader commented on Magnasanti – The largest and most terrible city of SimCity   weekly-geekly.imtqy.com/a... · Posted by u/ecliptik
DonHopkins · 3 years ago
What's weird about those screen shots is that they must have been photoshopped, because all the graphics except for the text are identical to the English version, yet I highly doubt the lazy translator actually had access to the save files at the exact point in time when the screenshots were made to load them into the Russian version of the game.

So it's much more likely that the screenshots were meticulously edited to remove the English text and replace it with Russian.

English original:

https://archive.ph/GokfI/5fff3abf855b5851484418965bf747d1d8a...

Russian fake:

https://habrastorage.org/getpro/habr/post_images/249/838/546...

English original:

https://archive.ph/GokfI/33461173f8f068f29ae392ddde9833c1000...

Russian fake:

https://habrastorage.org/getpro/habr/post_images/c73/e8f/088...

If you zoom in you can see that the Russian fakes have some but not all of the jpeg artifacts from the English originals smoothed out (look around the letters, then around the lines on the graph), and the large numbers are missing commas, so they are definitely fakes based on the original jpegs of English screen snapshots.

I don't even know if there was a Russian version of SimCity 2000.

There's certainly a Russian version of The Sims 4, but Russia is so existentially terrified of a computer game turning their delicate children gay that they banned it.

https://www.cbr.com/sims-4-wedding-stories-russia-banned-pro...

Edit: I explained above why I am sure they are fakes. Look at the jpeg artifacts closely, which give it away, especially around the letters and lines: some are missing (around all the letters and in some background areas), others are perfectly identical (around the lines of the graph). That proves the Russian versions are fakes beyond a shadow of a doubt, based on the original jpegs of English screen snapshots. Open each of the above four links in consecutive tabs, zoom in on each several steps, and flip back and forth between them to compare them yourself. Some but not all of the background was smoothed (gaussian blur, median filter, unsharp mask, etc), which removed the jpeg artifacts, and the old text was background-cloned away and the new text composed on top of the smooth background, without any jpeg artifacts. They definitely did not make new screen snapshots of the Russian version of the game on the original save files at the exact same time (how would they have even obtained that save file at that exact time?), because then none of the jpeg artifacts would match. It's as terrible a fake screen snapshot forgery as it's a terrible round trip translation from English to Russian back to English.

https://en.wikipedia.org/wiki/Compression_artifact

https://en.wikipedia.org/wiki/Ringing_artifacts

https://en.wikipedia.org/wiki/Gaussian_blur

https://en.wikipedia.org/wiki/Median_filter

https://en.wikipedia.org/wiki/Unsharp_masking

elevader · 3 years ago
Why would you assume that these are fakes? There are fan translations for the game (a quick google search would bring this up) and you can download savefiles for Magnasanti. Maybe the person simply recreated the Screenshots with their russian client? Seems a lot easier to me.
elevader commented on Understanding the bin, sbin, usr/bin, usr/sbin split (2010)   lists.busybox.net/piperma... · Posted by u/taubek
elevader · 4 years ago
> I don’t wanna be callous but on a scale of 0=I stubbed my toe and 10=children are starving in [insert location] this seems to be a -3.

Not sure what we are measuring here but the issue of this particular article annoying you seems like a -25 by comparison, so maybe just ignore it?

elevader commented on SELinux is unmanageable; just turn it off if it gets in your way   ctrl.blog/entry/selinux-u... · Posted by u/HyphenSam
strzibny · 4 years ago
This is not a good advice.

You'll basically get Ubuntu that didn't have SELinux in the first place, and most people don't care.

SELinux is difficult to build from scratch but there are decent tools to build your policy in an automated fashion.

The advice should be this: Don't have time to deal with SELinux at the moment? Switch to permissive policy and deal with it later.

I included SELinux as one big chapter in my book Deployment from Scratch rather than skipping on it.

elevader · 4 years ago
That's not really great advice either, temporary solutions/workarounds have a tendency of sticking around permanently.

u/elevader

KarmaCake day147August 28, 2017View Original