Better HN
topnewbestaskshowjobs
Log inSign up

codeflo

9,663 karma · joined Jun 14, 2010 (16y ago) · 1,502 submissions

Submissions

comment 3y ago · link · parent

I recommend you try to do it -- it's a fun exercise, and will very quickly answer any remaining doubt why it can't be done manually.

We actually did that in university; the public key we used was something like 91 (not hard to factor). Wikipedia has an example with 3233, and that's already very cumbersome: https://en.wikipedia.org/wiki/RSA_(cryptosystem)#Example

comment 3y ago · link · parent

For anyone outside of Germany who's wondering, the introduction mostly has the function of explaining the setting and the key repeating line to people who might not be completely familiar with the English language. It's usually shown without subtitles.

comment 3y ago · link · parent

I love the moving of goalposts that's happening here. "Just pick a server", "you can always migrate" moves to "you can always migrate if you happened to have picked a server not run by a hobbyist". Which, BTW, isn't even a filter criterion on the often linked instances.social.

Also, you can't back up your followers.

comment 3y ago · link · parent

I agree that subcommunities are a useful feature. That only proves my point, though. The positive example you give, Discord servers, are a lot more like subreddits than they are like Mastodon servers. You can join multiple of them, the power of the moderator is local and doesn't affect your account as a whole. Discord and Reddit are of course centralized services, but in theory there's nothing preventing a decentralized system from having a similar feature.

comment 3y ago · link · parent

Assuming you mean an actual blockchain and aren't just using it, as some people seem to do, as a catch-all term for cryptographic signatures, it's expensive overkill. Social media really doesn't need to pay the brutal computational costs to solve the Byzantine generals problem. You don't need to establish an immutable record under adversarial conditions because there's no "double spend" problem. A simple synchronization mechanism for cryptographically signed posts (to prove authorship) is enough.

comment 3y ago · link · parent

You can't migrate your followers that way, can you? Which is (arguably) for many people more important than the content of their posts.

comment 3y ago · link · parent

> Is this worse than trusting Twitter, Facebook, or TikTok?

Yes for the first two, no for the third. US-based companies are large targets for potential lawsuits, and consequently have processes in place to prevent random employees from accessing your DMs without cause. I obviously wouldn't trust those companies completely -- we're really arguing about probabilities here -- but there's at least some measure of accountability that makes them unlikely to do something trivially stupid.

> there are no private messages on Mastodon

It does have a DM feature -- that they aren't private is exactly the point.

comment 3y ago · link · parent

Peer to peer networks, with servers being purely optional for convenience (for convenient access from mobile, for example). Nothing about the social experience -- including your identity -- being tied to the "server" you're using to access the network. Technology has advanced since the invention of IRC.

comment 3y ago · link · parent

I'm exactly in the target demographic that desperately wants a a return to the old, decentralized, protocol-based internet. We need working alternatives to Twitter to prevent a single mentally unstable billionaire from having this kind of power.

But everything about Mastodon seems badly designed and engineered. The focus on "servers" seems technologically anachronistic, but worse, fragments the community and creates (IMO) unacceptable privacy concerns. Self-hosting requires unnecessary hoops, loses some community functionality, and runs into the risk of "defederation", which only exacerbates the problem of servers being overly important. If you do decide to go with one of the existing servers, and hadn't been there early enough to get into one of those run by the foundation, you're basically required to trust your online identity and private message secrecy to an anonymous activist admin with a kitty avatar.

Why Twitter should feel threatened by this clusterfuck at all is a mystery to me.

comment 3y ago · link · parent

Sure, it’s good to point out the difference between “the behavior of a typical optimizing compiler” and “things actually guaranteed by the language”. The context of the discussion was the former, I think. I’m not even that certain that monomorphization is actually required in theory.

comment 3y ago · link · parent

I only recently realized that certain type system features, like polymorphic recursion, make monomorphization impossible in the general case. In Haskell for example, it’s by necessity only an optimization that’s used where applicable, and not the general strategy.

comment 3y ago · link · parent

To add to this, even the Foo-wrapper is gone, just the i32 remains. Rust values are amorphous data blobs at runtime.

comment 3y ago · link · parent

I had a similar thought once, and while I still think the idea is correct, I just haven't found any variable width font for which this works for me. Most fonts have very narrow punctuation symbols. That makes sense for the visual flow of natural language text. But in code, symbols need to stand out just as much as letters. Monospace fonts achieve this perfectly, even if mostly by accident.

(BTW this is also the reason why I don't use "code ligatures" -- mashing symbols together is the opposite of what I want to read code clearly.)

comment 3y ago · link · parent

How do you do the (IMO common) 0 <= index < length?

comment 4y ago · link · parent

You can’t. It’s worse, in fact, because users can’t delete them.

comment 4y ago · link · parent

Not sure if it’s fair to downvote tcmb for not seeing this — the second rules page was rather well-hidden, I overlooked it as well.

comment 4y ago · link · parent

> The gateway is being overloaded, reaching 100 per cent CPU and RAM usage. There’s too much info when they are all online.

Maybe there’s an n^2 algorithm somewhere, maybe the hardware is simply underspecced. Maintaining voltage stability in a system without mechanical inertia (like a generator would have) requires incredibly fast response times, and a system like that should have been verified to actually achieve those.

From the damage that was caused, it sounds like there are no “hardware” fuses built into this system either. That alone should be cause for regulators to take the product off the market.

What a joke.

comment 4y ago · link · parent

I’m sure you personally do, but I’ve noticed that many English speakers pronounce it without the “sh” sound in the middle.

comment 4y ago · link · parent

If you don't insist on setting up your company in the most expensive city on the planet, you might not need VC money to set up a competent dev team.

comment 4y ago · link · parent

I noticed that Google Search itself has very recently become much more aggressive about asking for location permission. Coincidence, or is collecting more location data someone high up’s KPI for the year?

comment 4y ago · link · parent

It's my understanding that WASI is using Unix-like abstractions, because they also target native execution, while the AssemblyScript would prefer web-like abstractions, because they exclusively target the browser. From your second link at least, this seems like the main technical complaint:

> Languages that would naturally fit the Web platform not only are overlooked, but WASI's self-imposed abstinence of Web concepts undermines other languages' interoperability potential with JS and the Web platform specifically.

The problem is that objectively, the web platform is garbage. Half-baked, weirdly incomplete abstractions, most of can only be rationally explained as either historical accidents or the aftermath of political fights on standards committees. Why would anyone base a new abstraction around those if they don't strictly have to?

comment 4y ago · link · parent

Why does a „3rd party encryption software” appear in the call stack of a user mode process in the first place? Is this another case where a “security” software injects broken DLL files into all processes in your system?

comment 4y ago · link · parent

No problem, just introduce intreallymax_t and later intmaxthistimewereallymeanit_t.

comment 4y ago · link · parent

The “coverage” explanation given by the top answer doesn’t make a whole lot of sense. With the manufacturing tolerances involved (especially historically when those values were chosen!) the idea that 22 and 47 gives more useful combinations than 22 and 46 is numerology, not engineering.

Wikipedia only says that the deviation is for “unknown historical reasons”. Maybe a deep explanation doesn’t exist, and it’s a simple historical error that was propagated?

comment 4y ago · link · parent

To add to that, Java doesn’t make it convenient to have a place that catches checked exceptions only, because the inheritance hierarchy is the wrong way around for that.

Also, the type system isn’t strong enough in most cases to express something being generic over the exception type, so lots of interface implementations end up having to wrap every exception in a RuntimeException anyway.

comment 4y ago · link · parent

I’m German and vaguely pro-green energy in general, but I’ve yet to see one piece by environmentalists that isn’t utterly confused by the difference between energy and power, i.e. how much electricity is generated at any given moment vs. how much is generated in total. You could have a magic fantasy technology that produces a trillion TWh for three dollars. If it were somehow limited to doing so for only 20 seconds each day at noon, it would be utterly useless to fill the electricity needs of a nation.

In theory, you might overbuild wind power to the point where even if it’s running at 1% efficiency on a windless night, that would still be enough. I’m not confident that would work even if we dedicated the entire surface area to wind turbines and lived underground.

comment 4y ago · link · parent

> But I have yet to see commercial projects with mixed skill level team members where using such libraries didn't lead to productivity reduction on the long run (independent of programming language).

Mixed skill team or not, I really don’t see why Box<[u8; 1024 * 1024]> should be something the language struggles with.

comment 4y ago · link · parent

Having been bitten by that exact problem in C++, I think the original sin is to treat stuff like copy elision as a mere optimization, instead of a semantic guarantee.

comment 4y ago · link · parent

How is evaluation order even relevant for RVO?

comment 4y ago · link · parent

> No real guarantees around RVO / NRVO

Shouldn’t Rust in theory have a lot more freedom in defining its calling conventions than C++ has? I wonder if there’s anything that prevents doing RVO by default, or if just hadn’t been a priority yet.

1
192021
51