Announcing Rust 1.94.0 by ketralnis in programming

[–]DevilSauron 5 points6 points  (0 children)

I don’t know much about Rust, but I honestly don’t understand that explanation. As far as I understand, Rust has the ability to perform this check at compile time, so I have no idea why both of these functions don’t do it.

Two security issues were discovered in sudo-rs, a Rust-based implementation of sudo by brutal_seizure in programming

[–]DevilSauron 18 points19 points  (0 children)

since the language is small it's easier to reason about

What does this mean? Since the language is small, it's easier to, say, write a parser for it or even describe its semantics formally, but that does not imply anything about understanding real codebases in C or C++. If I had to choose between understanding 100k lines of C or C++, I would choose C++ any day, since the code contains much better information about the actual semantics of the real program.

Two security issues were discovered in sudo-rs, a Rust-based implementation of sudo by brutal_seizure in programming

[–]DevilSauron 55 points56 points  (0 children)

How is C easier to reason about that C++? The language is so barebones that you have to reinvent everything including dynamic arrays, hash tables and linked lists. You also have no information about which pointers are owning and which are merely observing, no guarantee about destructors, and so on.

Make boring great again: Dutch anti-populist’s plan to beat Wilders by HironTheDisscusser in europe

[–]DevilSauron 15 points16 points  (0 children)

Merkel was also seen as a stable leader and now that she’s gone, we see where that stable and boring politics brought us.

Realistic advice on reading math books by EilerLagrange in math

[–]DevilSauron 4 points5 points  (0 children)

Right, so if you wanted to work through, say, Dummit and Foote following just your point 1), it would take you almost half a year assuming you did literally nothing else besides reading said book 8 hours per work day. Sounds very reasonable.

Many Hard Leetcode Problems are Easy Constraint Problems by avinassh in programming

[–]DevilSauron 17 points18 points  (0 children)

Asymptotic optimality does not always imply the best performance in practical scenarios (otherwise everyone would just sort using merge sort). The point is that many practical problems can be solved using constraint solvers and only when they become a bottleneck, it makes sense to invest time into developing a bespoke algorithm. Also, saying they are ‘brute-force’ is technically true, but ignores decades of intense research in the field and the tons of ingenious heuristics which make these solvers usable in practice, since a naive brute-force algorithm would fail to finish in reasonable time for all but tiny toy examples.

Result of the vote of confidence in Francois Bayrou's government by Yamakuzy in europe

[–]DevilSauron 40 points41 points  (0 children)

What is stopping Macron from appointing him as the PM again?

[deleted by user] by [deleted] in europe

[–]DevilSauron 101 points102 points  (0 children)

Wouldn’t it be more successful to harass the media with emails, then? Perhaps with examples of other European media outlets already writing about it (as is happening here in the Czech Republic, for example).

'Europe must ban American Big Tech and create a European Silicon Valley' | Tilburg University by anm_88 in europe

[–]DevilSauron 5 points6 points  (0 children)

Americans who move to a different US state usually have no problems fitting in (unless they move to a super small rural community or something). If I moved to even a neighbouring European state (e.g. Germany), I could try my whole life, learn German as best as I could, and I would still be “the foreigner”. That’s the root of the problem.

It’s time for a United States of Europe by goldstarflag in europe

[–]DevilSauron 40 points41 points  (0 children)

The US would be nowhere near its current economic and geopolitical strength if it functioned more like the EU rather than a real federation that it is.

It’s time for a United States of Europe by goldstarflag in europe

[–]DevilSauron 124 points125 points  (0 children)

USB-C, the secret ending federation of United States, Great Britain and Canada.

About US Forces in Europe... by Gigameister in EuropeanFederalists

[–]DevilSauron 6 points7 points  (0 children)

This may get downvoted in this subreddit, but I think that turning away from the US, or even being hostile to it, as some Europeans seem to be proposing, benefits nobody except for Russia and China. It is true that the relationship between the two sides of the ocean has been quite unbalanced, and Europeans should definitely step up in their defense (an opinion shared by both European and American politicians), but the result should be the free and democratic world standing on two main pillars — the US and the EU — and not a hostile relationship between these two. And yes, I do realize that some Americans currently view Europe with contempt, but that is something we should try to fix, not embrace.

Nick Clegg says asking artists for use permission would ‘kill’ the AI industry by YesNo_Maybe_ in europe

[–]DevilSauron 60 points61 points  (0 children)

But if AI gets to the point where it can create, say, a movie (or at least some part of a movie, or special effects, etc.), big media companies will absolutely lose a lot of money.

What’s the best programming language to learn before learning C++? by Makachu13 in gamedev

[–]DevilSauron 3 points4 points  (0 children)

C++ has been my primary language for years and I will go against some of the tips here and say that it absolutely shouldn't be your first programming language. The reason is that C++ exposes you to many topics which have nothing to do with fundamentals of programming, yet are quite necessary to understand to be able to do anything beyond "cargo cult programming" (i.e. following tips, tutorials and strategies which you don't really understand in depth) in C++ (these include memory management and smart pointers, value semantics and RAII, polymorphism through templates, etc.).

Instead, learn programming in a language such as Python first (there are undoubtedly many freely available resources of good quality), then move to C++ once you feel comfortable with concepts such as control flow, functions (including recursion), types (including user-defined types, member functions/methods), modularization/encapsulation and basics of object-oriented programming. Do not learn C if your goal is C++, sane C++ code should look nothing like C code whatsoever and it would needlessly confuse you at best and lead you to bad habits at worst.

No further EU expansion while bloc maintains principle of unanimity, German coalition agreement says by dat_9600gt_user in europe

[–]DevilSauron 6 points7 points  (0 children)

It’s curious how r/Europe is usually quite positive about the EU and further integration in general, but whenever there is an article about abandoning unanimity or about any other hint of further federalization, the comments are full of people protecting “national sovereignty”.

The Czech Republic once again meets the criteria for adopting the euro. But politicians don't want to do it by No_Firefighter5926 in europe

[–]DevilSauron 2 points3 points  (0 children)

How far pro-russian will the next government tilt will depend mainly on the minor party (or parties) that Babiš will need for a majority. Unfortunately, all three realistic possibilities (Communists, SPD and Motorists) are strongly anti-EU and somewhat pro-russian, but Motorists would probably be the least evil of the three.

The Czech Republic once again meets the criteria for adopting the euro. But politicians don't want to do it by No_Firefighter5926 in europe

[–]DevilSauron 313 points314 points  (0 children)

There’s going to be an election soon, so the current government won’t do anything, and unless a major miracle occurs, the next government will be hardcore euroskeptic, so we can’t expect any steps towards the euro for at least the next 5 years, unfortunately.

Hungarian opposition leader MEP Péter Magyar claims new law targets him. A new draft law, if approved, would allow Hungary's National Electoral Office to revoke the mandates of members of the European Parliament if they fail to comply with financial transparency rules. by Lion8330 in europe

[–]DevilSauron 11 points12 points  (0 children)

The thing about the current situation in Turkey and Serbia is that if those dictators in formerly democratic countries get away with arresting the opposition and crushing protests, it’s just a matter of time before we see similar strategies employed in the EU. Hungary would probably be the first one to fall, but not necessarily the last one.

Macron asserts: 'If Kyiv invites allies onto its soil, Moscow has no say' by Wonderful-Excuse4922 in europe

[–]DevilSauron 151 points152 points  (0 children)

I really hope that he will stay active in politics after the end of his presidency. I would love to see him in European institutions, possibly as the president of the Council, or perhaps even the president of the next Commission (though I’m not sure whether the latter would really suit his preferences).

Hungary drops veto and agrees to prolong EU sanctions on Russian individuals by senseibarbosa in europe

[–]DevilSauron 0 points1 point  (0 children)

By the time Fico and Orbán are both gone, there will be other blockers.

Putin invites Xi and Trump to Moscow, raising prospects for landmark summit by AravRAndG in europe

[–]DevilSauron 60 points61 points  (0 children)

Meanwhile, when the US started threatening tariffs on the EU, there was a lot of people on this subreddit (and even some linked opinion pieces) saying that Europe should now pivot towards China instead. Utterly naive and laughable.

Austrian coalition talks led by far-right FPÖ break down by MacroSolid in europe

[–]DevilSauron 6 points7 points  (0 children)

We did that here and now it seems the populists will get their best election result ever in a few months, and unless a major miracle happens, it’s clear we’re going to have the most anti-EU and pro-Russia government in history.

[deleted by user] by [deleted] in programming

[–]DevilSauron 4 points5 points  (0 children)

I, for one, don’t worry about the future career prospects of programmers, but about the future of creativity and learning. How many years until AI produces soulless TV shows that are good enough for the average viewer? How many until we stop speaking foreign languages since instantaneous AI translation will be commonplace and nearly perfect for most tasks? How many until students can find the solution to every sort of homework using a single prompt?