Better HN
topnewbestaskshowjobs
Log inSign up

kldx

108 karma · joined Apr 5, 2022 (4y ago) · 84 submissions

Submissions

1.

Tell HN: Beeper deletes inactive accounts without notice

4 points · by kldx · 9mo ago · 1 comment

comment 1y ago · link · parent

https://github.com/francoismichel/ssh3

comment 1y ago · link · parent

Let me try providing a different perspective based on experience. QUIC works amazingly well for _some_ kinds of machine to machine traffic.

ssh3, based on QUIC is quicker at dropping into a shell compared to ssh. The latency difference was clearly visible.

QUIC with the unreliable dgram extension is also a great way to implement port forwarding over ssh. Tunneling one reliable transport over another hides the packer losses in the upper layer.

comment 1y ago · link · parent

QUIC v1 does encrypt the SNI in the client hello, but the keys are derived from a predefined salt and the destination connection id. I don't see why decrypting this would be difficult for a nginx plugin.

comment 1y ago · link · parent

> For example, instead of a power function that uses a loop, you could generate specialized code like x * x * x * x * x directly. This eliminates runtime overhead and creates highly optimized code.

Could anyone explain to me how this is different from templates or parameter pack expansion in C++? I can see the constexpr-ness here is encoded in the type system and appears more composable, but I am not sure if I am missing the point.

I looked at the paper but I can't find anything related to C++.

comment 1y ago · link · parent

Wondered about the same thing. Perhaps the author deals with graphs with no side effects or branches? It would then trivially become CSE on a single basic block.

SSA transformations are essentially equivalent to what the author appears to be doing in terms of let-bindings [0].

[0] https://dl.acm.org/doi/10.1145/278283.278285

comment 1y ago · link · parent

Can anyone suggest simple to implement algorithms for SSA destruction? I find Cytron's destruction easy (paired with copy propagation), but the more recent ones are difficult to implement directly from the papers.

comment 1y ago · link · parent

I like Aria's writing about this https://faultlore.com/blah/swift-abi/.

comment 1y ago · link · parent

I am doing it this year with haskell. My C++ alter-ego (ab)used Data.STRef in the previous years so I am trying to do it idiomatically this time.

comment 1y ago · link · parent

Apologies, I mean $rax

comment 1y ago · link · parent

Aren't we paying for Result types every time it's used? A result of a 64 bit value wouldn't fit into $eax for example (I understand there are exceptions to this rule through invalid bit pattern optimizations)

comment 1y ago · link · parent

Cargo workspaces do not support compiling two subprojects for two different targets in a single build invocation. The workaround was (still is?) to use each subproject as a standalone project just for builds. The dependency between these targets is now expressed by the Makefile invoking cargo. This also breaks IDE integrations because your IDE does not know how to ask cargo to pick the right target for each workspace member.

Bazel makes this consistent with platforms [0]. I have not used bazel with Rust but it worked fine for my multi-target C++ builds.

[0] https://bazel.build/extending/platforms

comment 2y ago · link · parent

In the embedded space, rust works great for riscv on ESP chips

comment 2y ago · link · parent

I like MegaParsec in haskell quite expressive, based on my limited experience using nom in Rust

comment 2y ago · link · parent

Adding some context here - TBane stations (the subway) in Oslo have posters that show live videos - usually static images with dynamic attention-grabbing effects but sometimes full blown videos too.

comment 2y ago · link · parent

No, I agree with your remark completely but I'm still ambivalent about the tradeoff.

We agree there should at least be one medium of advertising for political parties. But where do we draw the line?

For instance, I would be happy with making all ads plain text, standard font and size so that the ads won't abuse human attention by showing bright colors, happy images etc.

comment 2y ago · link · parent

How are TV ads any different from MDG posters or the AP ads at bus stops? We allow the latter in Norway and they're not that much cheaper than TV ads.

comment 2y ago · link · parent

How common is enforcement in these situations? What happens if a 900MHz baby monitor continues to be used after this chunk of the spectrum is privatized?

comment 2y ago · link · parent

Thanks for the clarification, I stand corrected. I really hope they open source their new android client - they are lacking tons of features I'm used to from the element-based android client.

comment 2y ago · link · parent

That might explain why Beeper moved away from the fork of the android Element client. I assume they are running a fork of Synapse as the backend as well.

comment 2y ago · link · parent

Sorry, I am not very familiar with the .NET ecosystem. Are you refuting any of their points?

comment 2y ago · link · parent

https://isdotnetopen.com/

comment 2y ago · link · parent

> Everything is so financialized that most people will die not knowing what a strawberry tastes like. That's dystopian.

It's true for almost all basic needs and that makes me sad. Most people would die not tasting great drinking water or enjoying uninterrupted electricity we take for granted.

comment 2y ago · link · parent

The estimates appear to match what notebookcheck[0] reports on their measurements - 4.4W idle average. With some tuning[1] and turning off unused peripherals, I expect to go below 4W idle.

[0] https://www.notebookcheck.net/Lenovo-ThinkPad-T14s-G3-AMD-la... [1] https://docs.kernel.org/admin-guide/pm/amd-pstate.html

comment 2y ago · link · parent

Trusting the Thinkpad spec sheet numbers, an AMD T14s lasts >15hrs in one of the benchmarks on a 57Wh battery. That's less than 4W. Perhaps on Linux and with some tuning, it seems plausible to get to 3W?

comment 2y ago · link · parent

If you don't mind, can I ask you a few questions about your tooling? I work in rust verification and would be interested in hearing about how industry uses verification techniques.

comment 2y ago · link · parent

You're right. That's why the US has skilled worker streams to obtain work permits. For those with extraordinary abilities, the process is arguably quicker. These streams are oversubscribed with talent from other countries so the US isn't immediately pressed to create a special visa stream for Norway specifically.

comment 2y ago · link · parent

> We're not that many.

We already allow freedom of movement from countries within the EU, whose population sizes are an order of magnitude more than ours. Yet the amount of paperwork it takes for a US citizen to work here is fairly high. They also don't get any unemployment benefits as long as they are on a work permit because of NAV's rules.

Why should the US offer us more than what we offer them?

comment 2y ago · link · parent

VCLLVM was presented at ETAPS 2024. The goal is to compile both languages and specifications to LLVM IR.

comment 2y ago · link · parent

They could however do a restructuring, eliminating the exact role one's skillset matches. You get a couple of months of notice period which is no different from a severance package.
123