HN user

devjab

3,171 karma
Posts0
Comments983
View on HN
No posts found.

I've only been bullied once, so it's hard for me to really talk outside of that single time. I'm different and I've never given too many fucks about social norms or hierarchies, and I guess a bully from two grades above me took that as a sign I would be a good victim. Anyway, I knew what way he walked home, so the day after he had bullied me I hid in a bush. When he walked by I ambushed him with a stick and demanded he give me his school bagpack... I hoisted it into the school flagpole the next day... Like a total psychopath. Looking back on it, it's frigthening how few consequences there was for what was obviously way out of line. I guess the early 90ies were just a different time.

He probably had a shit life, but I never saw him bully anyone again.

I'm mid fourties and I remember bordercrossings were annoying back in the 90ies. I'm Danish so we didn't enter Schengen until around 2000. I guess it didn't help that I was young enough that we traveled by bus. Once when we were on a school trip to Prauge we had the Slovakia borderpatrol go through our entire bus while waving machineguns around.

I think it's more of an EU problem. We have so many public apps that rely on two big American tech companies solely because the EU has yet to figure out an alternative app store with enough security to make those apps available. This likely made sense 10 years ago, but today with all the talk about digital sovereignty it's frankly a little weak. It's not the OS that is the issue though, I could use graphene or similar just fine, but they wouldn't let me run a single of the apps that are the sole reason I have a smartphone. Well.. maybe the Microsoft authenticator?

I mean, I have to write exit strategies from Azure because the EU might demand our industry to leave non-EU infra. Yet ironically the digital company ID I would need to sign new contracts with within Europe aren't available without one of the two app stores. It's not that I can't sign those contracts without the ID, but I'd probably have to go to Germany in person.

Microsoft did some research on it 15-20 years ago for .NET which showed that sync doesn't scale for I/O workloads. The rest of the world sort of "knew" at this point, and all the callback and statemachine hell which came before was also leading the world toward async/await but the Microsoft research kind of formed the foundation for "universal" acceptance. It's not just for single threaded JS programs, you almost never want to tie up your threads even when you can have several of them because it's expensive in memory. As you'll likely see in this thread, some lower level programmers will mention that they prefer to build stackful coroutines themselves. Obviously that is not something Microsoft wanted people to have to do with C#, but it's a thing people do in c/c++ and similar (probably not with C#), and if you're lucky, you can even work in a place that doesn't turn it into the "hell" part.

I can't say why Diesel.rs doesn't need async, and I would like to point out that I know very little about Diesel.rs beyond the fact that it has to do with databases. It would seem strange that, anything, working with databases which an I/O heavy workload would not massively benefit from async though.

We're a much smaller scale company and the cost we lose on these things is insignificant compared to what's in this story. Yesterday I was improving the process for creating databases in our azure and I stumbled upon a subscription which was running 7 mssql servers for 12 databases. These weren't elastic and they were each paying a license that we don't have to pay because we qualify for the base cost through our contract with our microsoft partner. This company has some of the thightest control over their cloud infrastructure out of any organisation I've worked with.

This is anecdotal, but if my experiences aren't unique then there is a lot of lack of reasonable in DevOps.

I think the OO hatred comes from how academia and certain enterprise organisations for our industry picked it up and taught it like a religion. Molding an entire generation og developers who wrote some really horrible code because they were taught that abstractions were, always, correct. It obviously weren't so outside those institutions, the world slowly realized that abstractions were in many ways worse for cyclomatic complexity than what came before. Maybe not in a perfect world where people don't write shitty code on a thursday afternoon after a long day of horrible meetings in a long week of having a baby cry every night.

As with everything, there isn't a golden rule to follow. Sometimes OO makes sense, sometimes it doesn't. I rarely use it, or abstractions in general, but there are some things where it's just the right fit.

Maybe I'm doing things wrong, but I assume this tool is meant to focus on cognetive complexity and not things like code quality, transpiling or performance, but if that's true then why does this:

(score is 7) function get_first_user(data) { first_user = data[0]; return first_user; }

Score better than this:

(score is 8) function get_first_user(data: User[]): Result<User> { first_user = data[0]; return first_user; }

I mean, I know that the type annotations is what gives the lower score, but I would argue that the latter has the lower cognetive complexity.

If it goes by WIFI and not the wired network it'll be rather of useless in every enterprise organisation I've ever worked in. I'm not sure I've even worked in a place where the WIFI wasn't a guest network. Don't get me wrong, I'd like the feature. I work in a fully flexible place, but part of that is setting your status to be "working from outside the office" when you're not there. If that could happen automatically that'd be great.

Was MERGE too slow/expensive? We tend to MERGE from staging or temporary tables when we sync big data sets. If we were on postgres I think we'd use ... ON CONFLICT, but MERGE does work.

I have smart lighting, but that's only because it means I can turn everything in the area living and eating room on/off with a single button/switch (not sure what the right English term is). In a typical Danish townhouse like mine that would be 4-8 buttons otherwise.

If I had an electrician redo the wiring, I'd do the same thing without the "smart".

Since we are pulling numbers out of our asses can you tell me what good advice that 95% of the people aren't capable of following is? It's great that our national health institutes advices us, but can you explain how the advice isn't completely useless in this particular context? To me it comes off as arrogant and rude.

Ofcom is simply doing their job. I doubt they care about the users of 4chan. They will fine the company in accordance to UK law. Then if the company does not comply Ofcom will target their advertisers and it's Japanese owner who lives in France as well as having UK ISPs block 4chan. I can't think of any reason as to why France wouldn't work with UK authorities on this.

Contrary to HN and other USA tech forums might think, this will likely be recieved favorable by the the UK public.

We had Python and C. We aimed for Go. Now we have Python and C. Yhe deeper story is more change management than technically. We hoped we could obtain advantages from Go because we, perhaps naively, figured it would lessen the gap between programming and software engeniering. We have a lot of people who can build software, but few who can optimise it. We hoped Go would give us a lot of "free" optimisaton, but it didn't. It also wasn't as easy to transition not SWE's into not Python as we had hoped. We made no major rewrites, we instead build some of our new tools and services in Go. Some of these have been phased out, others will live out their lifecycles as is.

I personally really like Go, but I feel like I now have a better understanding of why so many teams stick with c/c++ without even considering adopting Go, Rust or similar.

No, just C ABI compatible libraries. Maybe when there are two fridays in a week we will have enough time to do some actual adoption.

I quite like that Zig works a drop in for C in a few use cases. It's been very nice to utilize it along with our Python and regular C binaries. We attempted to move into Go because we really like the philosophy and opinions it force upon it's developers, but similar to interpreted languages it can be rather hard to optimize it. I'm sure people more talented than us would have an easy time with it, but they don't work for us. So it was easier to just go with Python and a few parts of it handled by C (and in even fewer cases Zig).

I guess we could use Rust and I might be wrong on this, but it seemed like it would be a lot of work to utilize it compared to just continuing with C and gradually incorprating Zig, and we certainly don't write bug free C.

As an EU citizen the biggest issue for me is that even if I bought a fairphone with grapheneOS, it might as well be a "dumb" phone. This is because all the apps to make our daily lives non-annoying require the Google Play or the Apple App store. So to me it's the lack of digital sovereignty from the EU and our individual countries that is the main issue. Sure it would be nice if big tech didn't close their platforms, but that ship appears to have sailed. If they ever get around to making these apps available through a different store, then I don't see why I wouldn't want a different OS.

We still need open hardware and more companies like fairphone to utilize it, but we primarily need the EU to get it's act together and break the reliance on big tech app stores. I know there are a few companies trying to build app stores with the necessary security compliance and if the EU wants to be serious about digital sovereignty it'll need to support these.

On the other hand you can't sue a company for losing your data in many EU companies. You can report them to whatever data protection agency your country has, and after an investigation they can fine, and/or, in more serious cases turn the matter over to the police for a criminal investigation.

The disadvantage of this is that the local data protection agencies haven't been handing out very big fines. Sometimes that's due to company law. In my country you'd fine the owning company, which in many cases will be a holding company. Since fine sizes are linked to revenue and a holding company typically has no revenue, this means fines are often ridicilously small.

Who do you imagine will get fired? The CISO who's been recommending various security imporvements and been trying to get them implemented, but been unable to do so due to a lack of C level interest in IT. Or the C level's who lack interest in IT security until it bites them in the investor?

At least here in the EU we're moving toward personal responsibility for C level's who don't take IT and OT security serious in critical sectors, but in my anecdotal experience that is the first time anything regarding security has actually made decision makers take it serious. A lot of it is still just bureaucracy though. We have a DORA and NIS2 compliant piece of OT that is technically completely insecure but is compliant because we've written a detailed plan on how to make it secure.

I work in solar, so we have quite a lot of hardware which doesn't run on free software. We couldn't patch part of our inverter pipeline because the hardware was proprietary and had no open alternatives. We had to pay quite a lot of money to find one of the original engineers and have them flown in to help us unlock it, so that we could replace the firmware with some we had a security clearance holding contractor write for us.

To be fair this is a story about not doing your due diligence and buying the wrong hardware, but I think it can give you some insight into what the article talks about. Because yes, you can install Linux, but can you install something on your blender when "BRAND" decides you need to pay a subscription to run the self-cleaning program?

I'm Danish, chat control has it's origin in a proposal from my politicians. It's been revoked because there was no support. The major reason it was revoked was because of the strong German stance against it. It's currently backfiring in the hands of the politicians who suggested it. In Denmarj we seem to often be on the wrong side of internet freedom, and I think we should all criticize that. Only it's not black and white, because we're also one of the most pro-free-speech countries in the world. I know the world is often turned black and white on the internet, but if you're always painting the black, then that doesn't help the debate.

I think that is what Pavel does. Look at how he mentions chat control, but not that it was turned down and revoked. Then directly goes on to criticize Germany (who shut down chat control) for being anti freedom. He doesn't say anything that is wrong. Due to their history, Germany does not allow you to say anything you want about their politicians, deny history or praise nazism. It's that same history that makes Germany such strong proponents for privacy though, because they've lived the Surveillance state before it was cool. That is what has turned Germany is a privacy haven on par with Sweden, but where does Pavel ever mention that?

For that is the main issue with people like Pavel. It's not that the message is wrong. The internet has become mainly controlled by a couple of SoMe companies which are controlled by the aristocracy. It's that he polarizes it, but only against the west. I get why he wouldn't criticize Russia even if he wanted to, but he's certainly not walking the walk, is he? The fact that he spreads the message on X just makes it even more hypocritical. (If you think that part about X is me being "woke", please keep in mind that Twitter banned Trump.)

To limit the amount of languages we support I recently rewrote one of our backend services from Go (with SQLC) to Python. I hadn't worked with Python "web" for a while and started with Litestar and also their Advanced-Alchemy. Part of the reason was that their DTO's and dataclasses seemed like a good way to skip Pydantic. Anyway, once models became complext it wasn't easy to skip Pydantic and it also wasn't easy to deal with Advanced Alchemy. One afternoon I got so annoyed with it I rewrote everything with Django Ninja. It took me 4-5 hours that evening to recreate all the previous weeks stuff with Django because of how good the batteries included are.

I'm not sure I'd ever use any other web framework than Django going forward, and I'm not using half of it (including the admin). I think Litestar is great by the way, Django is just so easy to produce with.

I think you may be underestimating the amount of people who would buy the easy sollution. I've been part of a makerspace where we've tinkered with 3D printers since before it was cool. I still have a Bambu Lab printer myself because it's the "iPhone" of 3D printers that just works out of the box. I used to have a Linux laptop and now I have a MacBook because it's easy.

If I were to buy a NAS it'd be the "iPhone" NAS because it was easy. Though I don't think your prediction for Synology is wrong. I'd certainly pick the one that didn't previously try to push their own HDD's.

Even though it's the same app and ID, there is a bit of a difference between the company ID tied to my digital ID and my private digital ID. You can get a physical code thingie instead of the phone app for private use. To be honest though, the primary reason I have a smartphone is that it's annoying if you don't. Banking, contacting the doctor, buying medicine, dealing with your childrens school, going to the library and so on are all super annoying without apps, and you can't get them without Google Play or Apple.

Sort of. We're heavily containerized and have almost no reliance on Azure only services. So we could deploy it to any EU cloud, or even put it on our own hardware if needed. In the worst case, we could use work laptops as a linux cluster and run on that, though storage would be "interesting". That is my part of the business though. IT operations don't exactly have an easy exit if they're told we can't use Windows or Office in a month. Finance doesn't have an easy exit if they're told they can't use BC, and so on.

Basically energy production would have few isses with a disconnect from the US, regardless of where we'd have to go. But the business would struggle.

Mainly that I've yet to follow through on my 5+ year old plan on building a small greenhouse and using solar for water pumping. For most use cases it's a fairly bad "business case" compared to simply buying the power you need. If anything, you would probably be better off setting up a storage sollution to buy power when it's cheap, and then using it when power is expensive, compared to actually setting up power generation yourself.

If I had a good area for them which wasn't some form of rooftop I might have. Rooftop installations are very expensive in Denmark because they are too heavy to be installed without building a lot of support. Even my carport would basically need to be an entirely different structure with a custom foundation to support a roof of solar panels. Which you can absolutely do, but it would be decades before it was worth it.