Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 3y ago · link · parent

Hmm, no?

Photos are generally <1MB in size and I think have a single photo sent but not received on average per user seems reasonable (most users probably almost never use Signal, and of those that do probably most only use text, and those that use photos probably most don't send more than one or a few per day).

Videos are probably relatively rare and if not maybe they should do something about them, like not storing overly large ones them on servers and requiring both phones to be online to transfer.

There's a 500x margin between the estimate and their costs anyway.

comment 3y ago · link · parent

I assume they only need to store it between the time it is sent and the time it is received by the recipient.

Maybe the problem is that the Signal app doesn't eagerly download messages upon notification? They should start doing that given the money issues.

comment 3y ago · link · parent

These costs seem absurd.

For instance, 1.3$ million per year for storage??? Apparently, they have 40 million users, so 1 MB per user (seems reasonable for Signal) means 40TB. You can buy a 4TB SSD for $200, which means you need $2000 one-time for 1MB per user.

How they get from $2000 to 1.3$ million is a mystery.

As for SMS registration, if they are spending 6 million, maybe they should find some way of doing it for free, e.g. Google might be offering it with Firebase, Twitter used to have it, etc. It's not great for privacy, but if they care about that they should just stop using phone numbers.

Routing video calls through a server to obscure IP address seems totally pointless while you are revealing the phone number anyway. And again there might be a way to do this for free, e.g. perhaps using one of free WebRTC STUN/TURN servers that e.g. Google seems to run.

As for bandwidth, a very conservative estimate seems 100 MB per month for each of 40 million users, giving 4 PB per month (though I guess the real usage is 1/10 that at most). Hetzner charges $1/TB, so that gives $4000 per month or $40k per year, overestimated.

Again a mystery how they get from $40k per month to $2.7 million.

Maybe the problem is that they use AWS/GCP/Azure/etc.? They have to be real idiots to use them since everyone knows they are insanely overpriced and should never be used unless a large corporation or deep-pocketed investors are footing the bills or they is no other possible solution.

Perhaps they need to consider stopping dumping money down the drain before asking for donations.

comment 3y ago · link · parent

Seems like it would be much better to do conventional weather forecasting and then feed the predictions along with input data and other relevant information to a machine learning system.

comment 3y ago · link · parent

Properly designed hardware with signed firmware versioning has the bootloader permanently disable the ability to blow efuses until reboot before passing control to the OS, either through hardware or a mandatory hypervisor (and the bootloader itself is trusted and cannot be replaced without either a signature or special physical hardware access).

comment 3y ago · link · parent

I think it's more fun to program with LLMs, because rather than having just a single programming phase, you basically have three quite different phases: a first phase where you craft an initial prompt, then a second phase where you review the LLM code and ask it to make changes, and then a third phase where you change the code yourself to exactly what you want it to be.

comment 3y ago · link · parent

Current CPU vector instruction sets are as good as the ones on GPUs and they also have tensor/matrix instructions comparable to the ones on GPUs.

However, usually CPUs don't have enough cores and execution units to compete with GPUs, because they spend the transistors on out-of-order execution, cache and other features instead.

Intel Larrabee was the only attempt to actually make a CPU with a GPU-sized vector unit and they dropped it.

comment 3y ago · link · parent

Seems really terrible engineering to design a laptop where malware can destroy the speakers.

I guess there's reason to wonder whether malware might also be able to set the whole machine on fire.

comment 3y ago · link · parent

It seems to me the problem with that font is that the strokes are way too thick, making the "m" look like it's almost all ink, and it also seems that the lowercase characters are far too tall for their width.

If you use a normal stroke width (one that makes the empty space in the "m" as wide as the stroke) and width/height ratio for all characters, the problem naturally disappears, and in fact this is not a problem for instance in Linux terminals with the default fonts (normally DejaVu Sans Mono), where the characters look perfectly natural and fine.

comment 3y ago · link · parent

A much simpler and compatible solution would be to assign a single IPv4 address per AS and then use IP options to pass additional address bits to identify the specific host within the AS.

comment 3y ago · link · parent

16-bit bytes?

comment 3y ago · link · parent

A silver-coated umbrella is very effective at protecting the face as well as some of the upper body (or the whole body, if the sun is directly overhead or the umbrella is huge), except for UV reflected from elsewhere which I think is usually not significant.

comment 3y ago · link · parent

Another instance of a trivial and obvious feature that can only really be designed one way that is not implemented 4 years after initial proposal.

comment 3y ago · link · parent

For some reason the Rust project seems to be plagued by glacial development speed, with features taking years and years to be stabilized after design and often even after initial implementation.

Not sure why, progress used to be way faster years ago.

For example, this "four year plan" should be implemented in 6 months at most, not 4 years.

And the "long-term features" that "should be considered carefully, could not be addressed in the next few years" (lol, seriously?!?) should have serious work start right now and be released as part as the next edition in 2024 (since they need an edition break to be ergonomic). These are basic misdesigns of the type system that should have been fixed 10 years ago.

Whoever is managing and paying for the Rust developers needs to fix this.

comment 3y ago · link · parent

The code just ignores variable declarations. All variables are 16-bit words.

It just hashes the variable name and uses twice the hash value as the address of the variable in memory

For functions instead it uses twice the hash to store and lookup the function address at compile time, dedicating the whole compiler data segment except it seems for ds:0 to that table.

Note that in segmented x86-16, the code (plus constants) and stack are in dedicated segments, and string functions used to write the generated code write to yet another segment selected by es.

This seems to be the best strategy for compiler code size, although obviously it's vulnerable to hash collisions and only supports global non-array variables.

comment 3y ago · link · parent

Why do people use pills rather than copper IUDs? At least based on information on the web, it seems copper IUDs are strictly better: cheap, easy to insert and remove, nothing to do after initial insertion, no side effects other than "increased menstrual flow".

comment 3y ago · link · parent

1. You learn about those and not the ones who successfully hide and keep a low profile

2. Proper security takes time and effort, so there is less time to devote to actual business, which means they are less likely to be successful at a scale that makes them widely known

comment 3y ago · link · parent

"An element p of a commutative ring R is said to be prime if it is not the zero element or a unit and whenever p divides ab for some a and b in R, then p divides a or p divides b"

1 is a unit.

comment 3y ago · link · parent

The article claims that deferred rendering doesn't support MSAA, but this is only true for a naive implementation.

You can, for example, generate a stencil mask of complex pixels in the prepass and use hierarchical early stencil reject to run a per-sample pass for complex pixels and a per-pixel pass for non-complex pixels (with imperfect SIMD lane utilization).

You can also use a pass to process the complex pixels mask and collect a buffer of (x, y, sample) coordinates to allow a later single hybrid per-pixel/per-sample compute shader pass with perfect SIMD lane utilization.

comment 3y ago · link · parent

They computed results for a bunch of 36-empty-squares positions on their clusters and uploaded them to https://figshare.com/articles/dataset/Analyses_of_the_Game_o...

The script at https://github.com/eukaryo/reversi-scripts/blob/main/reversi... plays perfectly (assuming the whole thing is correct) a bunch of data computed by other scripts in the repository using the 36-empty-squares solutions, for which a regular machine is presumably suitable.

It seems that what it does is essentially look up a <=300GB table with all positions with 37-64 empty squares reachable from the weak solution, and runs edax with "-solve" for positions with <=36 empty squares.

comment 3y ago · link · parent

Can't you do most of what scrub would do with something like:

   find . -xdev -print0|xargs -0 cat > /dev/null
(ideally replacing cat with something that continues after errors)

comment 3y ago · link · parent

Is there any feasible way to run a non-Android OS on a phone and still have power efficiency and support for Android apps with multitouch, GPU acceleration, etc.? (i.e. some ready made solution that runs Android in KVM efficiently, or provides the Android kernel features and userspace RPC servers)

Without that, one must run Android to get access to mobile apps, which is essential.

comment 3y ago · link · parent

If you need GPIO you can just get an USB GPIO interface like the one at https://www.adafruit.com/product/2264

comment 3y ago · link · parent

This is what GPT-4 produced when asked to remove the bullshit:

SiFive Update - October 26, 2023

After years of growth, SiFive has reassessed its strategies and operations to focus on the most promising opportunities, leading to a restructuring. We believe this change is essential for our continued growth and industry leadership.

We are financially stable and continue to secure revenues and royalties from leading semiconductor companies. We are focused on maintaining our technological edge with investments in advanced R&D.

We recently launched the SiFive Performance P870 and SiFive Intelligence X390 products. Our commitment to our four product families: Essential, Intelligence, Performance, and Automotive remains strong, targeting sectors such as AI, ADAS, Electric Vehicles, Wearables, and Mobile.

With the increasing industry emphasis on AI and the need for adaptability in product design, SiFive aims to offer products that cater to these evolving needs.

SiFive has restructured to increase our agility, strengthen partnerships, and maintain our leadership in the RISC-V domain.

Regards,

Patrick

comment 3y ago · link · parent

Use a Pixel phone running version of GrapheneOS built and signed by you with your own keys, or use stock GrapheneOS and don't lock the bootloader, and add root access if desired.

That's the only hardware/software system that guarantees both total freedom, support for mainstream apps, good security and a quality device.

comment 3y ago · link · parent

The simplest definition of natural numbers is as the free algebraic structure generated by a nullary and unary operation (conventionally named "zero" and "succ"), which makes it natural to associate zero as the value of the nullary operation, so that one can be it's successor and addition by one works as expected.

Not having zero and associating one as the result of the nullary operation works as well, but then the natural definition of addition will result in x + y - 1 rather than x + y and it seems likely extension to rational numbers would not give an intuitive result.

1
789
51