Better HN
topnewbestaskshowjobs
Log inSign up

devit

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

Submissions

comment 5y ago · link · parent

They claim R2 is only free for infrequent access, and the storage price is still really expensive compared to the cost of hard disks, so the potential for disruption seems quite limited.

There seems to be potential for big disruption only if downloads aren't counted as operation in "Above this range, R2 will charge significantly less per-operation than the major providers".

Based on the release it seems the thing that would be most disrupted is storage and distribution of huge files (one download operation, huge egress bandwidth), which would result in it mainly being used for Mega clones for paid piracy.

comment 5y ago · link · parent

Just don't express yourself online non-anonymously, and in real life don't go to places where cameras are allowed.

comment 5y ago · link · parent

That's very verbose but not super clear.

A better explanation is that the main problems of processor design are that memory reads take 100-1000 times the time of an arithmetic operation and that hardware is faster when operation are run in parallel.

CPUs handle the those issues by having large memory caches, and lots of circuitry to execute instructions "out of order", i.e. run other instructions that don't depend on the memory read result or the result of other operations. This is great to run sequential code as fast as possible, but quite inefficient overall.

GPUs instead handle the memory problem by switching to another thread in hardware, and the parallelism problem by mainly using SIMD (with masking and scatter/gather memory accesses, so they look like multiple threads). This works well if you are doing mostly the same operations on thousands or millions of values, which is what graphics rendering and GPGPU is.

Then there are also DSPs that solve the memory access issue by only having very little on-CPU memory and either explicit DMA or memory reads giving a delayed result, and parallelism by being VLIW.

And finally the in-order/microcontroller CPUs that simply don't care about performance and do the cheapest and simplest thing.

comment 5y ago · link · parent

Interesting!

Though it seems to share the problem of all current dependently typed languages of not supporting efficient implementation since everything has to be boxed and there are no linear types.

So you are forced to choose between something efficient but with no built-in dependent types like Rust or an horribly inefficient dynamically typed languages.

comment 5y ago · link · parent

Price still seems absurdly high for backup purposes.

$0.015/GB/month means $150/10TB/month, but you can buy an 10TB USB hard drive for around $150-250 which is likely to last at least 10 years on average, so the service costs on the order of 100 times the cost of just the drives.

Though maybe CloudFlare is not the best suited company for the "lots of cheap drives for backup" business.

comment 5y ago · link · parent

Of course they form a monoid with concatenation, but it's not the monoid that makes the monad (which should be pretty obvious since concatenation is not used in the monad operations for arrays).

comment 5y ago · link · parent

The article is completely wrong. The monoid operation is not array concatenation (wtf?) but the monad join operation.

Here is a correct explanation: https://stackoverflow.com/a/3870310

comment 5y ago · link · parent

The article starts talking about professions where working remotely allows to service more or in fact all possible customers in the world at once (e.g. musicians, teachers).

That is not the case for programmers, consultants and contractors (or more precisely, the Internet already had that effect for website/app/SaaS builders without need for remote work).

What will happen for them is that employees from poor countries and outside main cities will be better able to participate, increasing work offer, but also it will be easier for businesses outside main cities to find workers, increasing work demand.

comment 5y ago · link · parent

They are addictive and conditioning and thus compete with the social conditioning from the Chinese government.

comment 5y ago · link · parent

Interestingly, the exercise is so boring (add authentication to a website with tests and documentation, for an outdated framework like Angular) that it probably selects out people who want to have a somewhat interesting job in addition to those who are incompetent.

comment 5y ago · link · parent

Someone added it to libc and now it needs to be provided forever for compatibility.

comment 5y ago · link · parent

I wonder if after being vaccinated it might be beneficial to intentionally get infected with the actual virus?

The downside is of course the risk of severe illness and having to quarantine until the virus is cleared, but the upside is that the resulting natural immunity might be effective against a possible future vaccine escaping variant.

comment 5y ago · link · parent

Why not use unvaccinated people from the general population?

There would be some selection bias, but it's going to be irrelevant for most things.

comment 5y ago · link · parent

It is a clear sign that the person never had any genuine interest in computing, since that would have led to learning how a CPU works (it's the most important part of a computer!) and thus its instruction set, which would have of course led to learning about binary operators and shift operators.

Instead the person clearly was motivated only by some specific application of computing or by making money.

comment 5y ago · link · parent

I don't really see what the problem would be with vaccinating every six months in case it turns out to be necessary to keep up immunity; in fact even vaccinating every month would be fine to avoid the risk of severe COVID.

Indications though seems to be for only needing 2 or 3 doses or needing boosters multiple years apart.

comment 5y ago · link · parent

In addition to adding the continuum axiom or its negation, there's also the approach of restricting oneself to computable sets and thus only having countable infinities.

comment 5y ago · link · parent

The initial design was quite flawed, in addition to not using sequences they should not use one DB object per organization, but rather a single object with an "organization" field.

comment 5y ago · link · parent

GraphQL can be seen as a programming language to write API endpoints, which you can expose as HTTP endpoints in a RESTful way if you want (or use a single POST endpoint, or use WebSockets).

In a traditional REST system you implement each API endpoint in a traditional programming language.

With GraphQL you first create a single GraphQL model and then write each API endpoint as a GraphQL query/mutation; often the code is in the source of the client apps and is extracted by the build system to generate the endpoints on the server.

It is also possible to let the client send arbitrary GraphQL at runtime to the server, although that's not recommended for security, performance and efficiency reasons.

In practice this means that if you change the client frontend to include different details in views (e.g. you decide to change a GraphQL-enabled HN so that the bio of the comment author is shown below every comment) then you only need to change the frontend and the GraphQL query (to include the extra data you need) and not the server backend code.

comment 5y ago · link · parent

Transactions have to be irreversible so that law enforcement is impossible, which is the main selling point of cryptocurrencies.

Of course that's a downside if you are the one who would like law enforcement to happen (either because you are the victim of a theft or you want to enforce on others).

Also fraud can be done with reversible transactions as well, in particular the reversal can be fraudulent; in general, reversible transactions are only really effective if the conveyance of whatever was paid for is also reversible.

comment 5y ago · link · parent

If your external integration has no local alternative, you are getting locked-in to its provider, so you should either not use it, or have an abstraction layer and implement an alternative backend.

comment 5y ago · link · parent

At least in some European countries fiber goes to a GPON terminal in the apartment and then proceeds via Ethernet cable to the home router.

I'd guess the co-ax cable is probably a US-only practice.

comment 5y ago · link · parent

I think it should be used to make a pure-Rust Tor Browser, since Rust memory safety is essential to preserve anonymity and there are already expectations that full web functionality isn't be available.

comment 5y ago · link · parent

This is a Bayesian model so it of course provides a probability distribution for both the parameters and the forecasted values.

P(model | historic_data) = P(historic_data | model) P(model) / (sum(model) P(historic_data | model) P(model))

P(future_data | historic_data) = sum(model) P(future_data | model) P(model | historic_data) = (sum(model) P(future_data | model) P(historic_data | model) P(model)) / (sum(model) P(historic_data | model) P(model))

comment 5y ago · link · parent

Shouldn't time-based (weekly and holiday) and trend effects be multiplied rather than added?

For instance, if users spend twice as many hours on the weekend on a website, and the total number of users has doubled, then these effects multiply to give 4x visits than the baseline non-weekend.

comment 5y ago · link · parent

You can buy a bunch of mobile SIMs and use them.

comment 5y ago · link · parent

I guess targeting MongoDB is a very effective strategy for the blackhats since the fact itself that someone is running MongoDB is a reliable indicator that their overall technical ability, thus including their ability to design and implement a secure system, is significantly lower than average.

comment 5y ago · link · parent

Why would testing stored procedures be "prohibitely difficult"?

Just create a new test database, populate it with test data, call the function with test inputs and assert that the return value and the SQL dump of the resulting state of the database are what you expect.

comment 5y ago · link · parent

Maybe it can be fixed with custom ACPI tables or a custom kernel driver?

Try running acpi_listen and pressing an Fn+something combo to see if it's ACPI-based. If so, it's a relatively easy fix by disassembling the ACPI tables, altering them and then using a bootloader that can replace the tables like I think grub supports (or if running Linux using kernel parameters to replace them).

1
151617
51