Hacker Newsnew | past | comments | ask | show | jobs | submit | jesstaa's commentslogin

I guess if you feel like you're not wasting enough money on roads this would certainly be a way to waste a lot more.


A guy describing his most basic bitch lifestyle as unique and different from everybody else.


Sure they can. They just have to do it in a way that doesn't create a disadvantage for other advertising providers.

Google isn't allowed to stop others tracking you without also removing their own ability to track you because that's anti-competitive.


You are assuming reasonableness on behalf of the regulators in question. In an ideal world, they hopefully said "you cannot give information to your own advertising/analytics division that you don't give to others". However, they could just as easily have said "you must provide either third-party cookies or a replacement for them", without offering the much more reasonable alternative of turning both off and not giving Google advertising/analytics any information either.

So, what did the regulators actually say, and does it in fact allow Google to turn off third-party cookies without any replacement? If it does, then this is Google's fault for adding this feature in Chrome. If it doesn't, then this is the fault of bad regulation.


> so more layers of abstraction can be added

The problem is that they're not layers of abstraction, they're just layers.

An actual layer of abstraction should allow you to replace or combine the lower layers. But we just have layers without abstractions.


The trade off has changed over time as memory access has become a bigger and bigger bottleneck. But caring about this is still "premature optimisation".

The claim of 20x program performance difference is overblown. Compilers can often remove virtual function calls, JITs can also do it at runtime. Virtual function calls in a tight loop are slow but most of your program isn't in a tight loop and few programs have compute as a bottleneck.

Measure your program, find the tight loops in your program and optimise that small part of your program.


Contractor is the wrong metaphor. They're building a house based on a plan already designed by an architect.

Software isn't the making of a thing, it's the designing of a thing.

Ask an architect how long it will take for them to design your dream home.


Architect designing home is the wrong metaphor.

Buildings do not have moving parts. Their core structures are almost all fundamentally the same. There are problems to solve, but again, not dynamic systems, and always variations on very well known themes.

Programming is usually like building a new type of interdimensional alien spacecraft engine that interfaces with some other alien artifacts. There are usually a lot of unknowns, new concepts, many moving parts, unsolved problems, to build a new invention.


Depends, really. Most software is doing basic CRUD and efforts can be estimated reasonably well. Some other software, like your example suggests, is literally rocket science. But even here estimates are typically not too far off.


> Programming is usually like building a new type of interdimensional alien spacecraft engine that interfaces with some other alien artifacts.

If programming indeed was "usually" like that, then there shouldn't be much software getting produced at all. Since building "a new type of interdimensional alien spacecraft engine" is something that's very very unusual, to say the least. :)


> Buildings do not have moving parts.

Of course they do: people, furniture, water, air, heat.


So it's estimated to cost 4x the cost of wind or solar today and it's not being deployed for at least 10yrs. Sounds like a bargain.


Except wind and solar cannot be used to sustain base load energy demands. Until battery technology improves drastically the issue with solar and wind is the variability of output. One of the greatest challenges of operating a power grid is matching the supply of electricity with demand. Thats why they build gas and coal plants to meet peak energy demand periods. Nuclear energy supplemented by win and solar is by far the cleanest way to meet our energy needs currently.


Alternately, if wind and solar can be made absurdly cheap, there are are less-energy-efficient but lower-cost per unit output forms of storage that can help. Pneumatic storage is promising for this for example. So like instead of one wind turbine and one battery, you build two wind turbines and one pneumatic energy storage vessel and get the same amount out.


Not to mention that load can be modulated depending on energy availability.


Oh no. You only get one unit of wind, one unit of solar, one unit of methane by electrolysis, and one unit of combined cycle gas plant for the same price rather than the usual of double all that.

However can we figure out how to get the same result with twice the energy and the ability to store it indefinitely at 40% efficiency. Especially given that the costs of all these technologies are going down at two digit percent per year.


This is mostly untrue.

Coal plants in particular are dramatically unsuited for the rapid changes in output to respond to changing demands for power.

Gas plants on the other hand are. And gas plants are cheap!

Overbuilding renewables with combinations of solar, geothermal (where available) and wind gives pretty good availability on it's own and with gas plants as a backup it gives you plenty of grid stability.

Edit: A link you posted elsewhere (thanks!) points out how well this works:

> If other sources meet demand 5% of the time, electricity costs fall and the energy capacity cost target rises to $150/kWh.

Battery storage is already well below this $150/kWh price.

https://www.cell.com/joule/fulltext/S2542-4351(19)30300-9


Do you have any non-Lazard data for the claim "Battery storage is already well below this $150/kWh price."?


https://www.nrel.gov/docs/fy21osti/79236.pdf lists a lot of difference references, and the Lazard range covers them all.

https://reneweconomy.com.au/solar-wind-and-battery-storage-n... gives "Utility-scale battery (four-hour storage duration) $145-167 per MWh" and references BloombergNEF

Better link for Bloomberg reference: https://www.energy-storage.news/behind-the-numbers-the-rapid...


Again, this is only for very short term storage. We are comparing apples and oranges.

As an example, for most of Aus, 5 hrs storage will only work for <80% renewables [0]. It's only practical on smaller scales which doesn't mean it isn't useful now but just means that the ~$100/MWh systems will not be practical everywhere, especially when renewables become more ubiquitous.

[0] https://reneweconomy.com.au/much-storage-back-high-renewable...

Edit: I had a deeper look at the NREL paper and most of their costs seem to be in the $100s/kWh rather than MWh. E.g ~$300/ kWh for 6 hour systems on Fig. 6.


You can go buy them for $100/kWh on batteryhookup.com right now if you want.


> it's not being deployed for at least 10yrs

2028 is 6 years from now.


I have a most excellent bridge to sell if you are interested?


Sure, the current bridge I'm working on building is currently ahead of schedule and on budget (well, within expected margins).


The caveat is mentioned in the link, right after the price comparison. "provided the 1,500- to-1,800 acres of land needed was free and the sun shone steadily" considering the price of land recently... that may need a better estimate than just the cost of the tech.


Can you share your math? How much storage are you factoring in for renewables?


https://www.cell.com/joule/fulltext/S2542-4351(19)30300-9. Tldr $20 per kilowatt hour in energy capacity costs. That’s how cheap storage would have to get for renewables to get to 100 percent.

Also the land requirements for huge solar / wind installations is another downside. Nuclear at scale is a clear winner especially in seismically stable regions of NA.


Awesome link!

> If other sources meet demand 5% of the time, electricity costs fall and the energy capacity cost target rises to $150/kWh.

So just 5% of grid supply from something like gas lets you use storage for baseload now!

Battery storage is now available for as low as $55/MWh.

https://www.lazard.com/perspective/levelized-cost-of-energy-...


It's not critical, but I think you are looking at the wrong page. $55 is on the /MW basis, the next page shows $131/MWh which is still good.

The source is "Lazard estimates", but I can't find anything close to this in reality. Pumped hydro is meant to be super cheap, but is currently ~ $100/kWh. I'm starting to agree with the other commenter that Lazard is bunk.

"Pumped hydro is already the cheapest energy storage technology in the world in terms of cost per installed kilowatt-hour of capacity. Total project costs range between $106 and $200 per kilowatt-hour, compared to between $393 and $581 for lithium-ion batteries, World Bank figures show." https://www.greentechmedia.com/articles/read/pumped-hydro-mo...


Its not bunk. People are comparing two widely different things and not understanding the difference.

The price of $150 is capacity of a battery. If i want a battery that can store 4 kwh i pay $600.

The other number referencing $55/MWh is referencing levelized cost of storage. I have a a MWh but instead of using it right now i store it for 4 hours. Now this MWh costs its initial price + $55.

Apply this example to a KWh where i would pay $0.1 for it if i used it right now if i want to store it for 4 hours and use it later i have to add $55/1000 to the price or about $0.055. So a directly used KWh would cost me $0.1. One stored for 4 hours would cost me $0.15.

Hope that makes sense and explains these different numbers.


I think I understand... are you essentially saying the 150 is capex and 55 is opex?


Lazard is generally regarded as pretty credible.

BloombergNEF says $145-167 per MWh.

> If you do that calculation at the global level, we evaluate the LCOE for recently financed projects is at US$150/MWh including charging costs. That’s our benchmark. We have a range around that benchmark which goes from US$115/MWh in China.

https://www.energy-storage.news/behind-the-numbers-the-rapid...


Thanks for the link. I am trying to get my head around the ~1000x improvement and I think it is because we are comparing apples and oranges. ~$100/kWh (like pumped hydro) can last for as long as the water in the reservoir lasts. ~$100/MWh (like the batteries you mentioned) are for <4 hrs reserve.

So the critical question is: how long will grids connected to renewables need reserve? 4 hours doesn't seem like much but I'm not sure the best way to find this info. Edit: from a 30s google search, 4 hours is only good for <80% renewables in Aus. [0] https://reneweconomy.com.au/much-storage-back-high-renewable...


80% renewables is huge! It's some years before we get to that level by which time we can expect the 20 hours required for all states to be economically viable.

And in the mean time gas peaker plants provide a viable, cheap and safe compromise without needing nuclear!

> We found in some cases the battery requirement becomes very large relative to the load, at greater than 20 hours. In these cases, it was concluded that additional gas peaking capacity would be more economic (and biogas was used when the emission constraint did not allow for natural gas).

This is the original report: https://www.energynetworks.com.au/resources/reports/electric... and these graphs are on page 98.


Yeah, we can use gas plants until batteries become economical, but why use gas when we could start the switch to a low-emission alternative now. The risks of Nuclear are tiny compared to the existential risks of delaying emissions reductions.

Biogas use isn't practical to replace existing gas supply.

I honestly really wish renewables + batteries could take over but it's too early. Aus has heaps of Uranium, is geologically stable, has strong regulating authorities and geopolitically secure. The perfect spot for low-emissions Nuclear which is practical and possible now in all respects except for politically.


>Lazard is generally regarded as pretty credible.

No they're not, as already pointed out in response to your other comments (e.g. https://news.ycombinator.com/item?id=32092280), yet you continue to cite them as an authority.

Not to mention the other comments that refute those numbers using the same paper - projects would be closer to ~$100/KWh when storage is taken into account, as shown graphed in the paper itself.


The numbers from the article are:

* $300 million for equivalent solar

* $200-400 million for equivalent onshore wind (they don't mention offshore wind which is more cost effective over it's lifetime)

* $1.5 billion for the SMR

Assuming solar and wind stay the same price for the next decade (which they definitely won't) that's a 4-5x construction price difference. The article didn't mention lifetime, decommissioning or running costs, which is likely a significant difference too.


Your numbers don't include storage, and you have basically ignored the parent comment. I think this shows that you are discussing this in bad faith


If you have any unauthenticated routes that you don't want arbitrary websites calling.

> using JWT in a typical SPA <-> API scenario. Is this typical? It's a pretty horrible setup. Cookies have a lot of great features that 'store a JWT in LocalStorage' just doesn't have.


This doesn't actually prevent arbitrary websites from calling them, it just makes it a tiny bit hard. They could always just proxy your endpoint and add the CORS headers.

I'm still interested in the original question: if you use localstorage for auth tokens and you have proper CSRF protection, what does allowing all CORS actually make you vulnerable to?


You don't even need CSRF protection if you use localstorage for the tokens


> You kids have no idea how easy you have it.

Sure, but the needle has moved. The thing that took you two weeks to write in 1987 isn't even considered anything useful by today's standards. The parsing needs to happen in real time, it needs to provide machine learning assisted auto complete, it needs a web UI and UI needs to show you an animated graphic of the scene you're describing, etc.


They had it easy being paid to sum a few numbers and call it a banking application :D


'Shellshock' was sitting there since 1989 and only detected in 2014.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: