HNHacker News
TopNewBestAskShowJobs

xxgreg

258 karma · joined September 9, 2011

submissionscomments
xxgreg··on WHLSL: Web High Level Shading Language
"There is active debate in the Community Group about whether or not this human-readable language should be the one that’s natively accepted by the API"

https://lists.w3.org/Archives/Public/public-gpu/2018Nov/

xxgreg··on While we are planning our weekends, the rich are planning for doomsday in NZ
"New Zealand isn’t the best solution, he said, because a tsunami caused by an asteroid strike in the Pacific could submerge the island’s highest point."

Highest point: Aoraki Mt Cook 3,724 m 12,218 ft

That's a pretty big tsunami...

https://www.topomap.co.nz/NZTopoMap/nz26258/Aoraki%2fMount-C...

Edit: https://en.wikipedia.org/wiki/Eltanin_impact

"The size of a possible tsunami has been calculated. An asteroid that was 4 km (2.5 mi) in diameter falling onto the 5 km (3.1 mi) deep ocean would have blasted the water off the ocean floor for at least 60 km (37 mi), and made a wave over 200 m (660 ft) high on the southern end of Chile and the Antarctic Peninsula. After ten hours, waves around 35 m (115 ft) would reach Tasmania, Fiji and Central America, and the New Zealand east coast would have been washed with 60 m (200 ft) high waves. If the impact object was 1 km (0.6 mi) in diameter, the wave heights would be five times less.[3]"

xxgreg··on WebAssembly is more than the web
What are the security implications here?

i.e. the Chrome team, post-Spectre, are assuming that any value in a process' memory is readable by any code executing within that process.

xxgreg··on Auth0 Glitch Allows Attackers to Launch Phishing Attacks
This blog post doesn't actually respond to the main security concern raised.

"malicious-service-a.com" spoofing "service-a.com" is different than "eu.auth0.com" spoofing "au.auth0.com".

In the second case both domains are valid auth0 domains. This makes it harder for a user to detect the phishing. This seems like a legitimate concern.

xxgreg··on Ready for Production Apps: Flutter Beta 3
"A widget that provides a canvas on which to draw during the paint phase."

https://docs.flutter.io/flutter/widgets/CustomPaint-class.ht...

Edit: All of the built-in framework widgets are written in Dart and rendered via canvas-like draw calls at the lowest layer (See dart:ui). Since the widgets are available under a liberal open source license you can fork them and customise them however you like.

xxgreg··on New Zealand Study Provides More Support for Lead-Crime Hypothesis
Agreed.

If crime is correlated with child poverty, and cheap rentals are old houses which haven't been renovated in a long time, and tend to have more lead paint. Then on average criminals will have higher blood lead levels. This doesn't provide any evidence that lead had any causal affect in crime.

xxgreg··on Power Prices Go Negative in Germany
Even in the US with less regulation and more subsidies, nuclear is more expensive than coal.

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

Keeping old nuclear plants online for a few extra years is not a solution to climate change. If some other western democracy can show how to build and operate nuclear plants cheaply and safely, great, do it.

So far the examples of recent new builds are slow and expensive. See VC Summer, Vogtle, Flamanville, Olkiluoto, and Hinkley point. From where I sit it looks like the German decision in 2001 to phase out nuclear was the right one, but only time will tell. (Merkel really did make a big mess in 2011 though)

Edit: Finish names are hard to spell.

xxgreg··on Power Prices Go Negative in Germany
In 2016 renewables in Germany produced 191TWh, up from 46TWh in 2003. The last reactors will shut down in Dec 2022. Over the next 5 years, renewables will increase more than the remaining 85TWh/yr of Nuclear generation.

https://energytransition.org/wp-content/uploads/2017/01/img3...

https://book.energytransition.org/sites/default/files/GET_en...

In order to reduce emissions new zero carbon electricity generation will need to be continually built. Germany is doing this.

Germany gave nuclear a chance, even spent billions on a thorium reactor. They learnt that nuclear is expensive and not compatible with their democracy. The currently running plants were built in 80s and will be shut down after running for decades. Much of the cost, i.e. the waste storage will be socialised. The first long term storage site has already failed. There is no public support for building new reactors, nuclear cannot be part Germany's ongoing decarbonisation.

xxgreg··on Power Prices Go Negative in Germany
Fun fact. The US burns more coal per capita than Germany. Sure theres lots of cheap natgas, but Americans tend to use a lot more electricity. Aircon isn't the difference either, this only makes a small difference.
xxgreg··on Germany Is Burning Too Much Coal
Yes the fight against coal is a challenging political battle in Germany. The social and political aspects are probably the most challenging.

There is discussion happening at high levels in government, for example the State Secretary at the Federal Ministry for Economic Affairs and Energy, Rainer Baake, used to be the head of Agora Energiewende who put out this coal phase out strategy.

https://energytransition.org/2016/01/proposal-for-a-german-c...

xxgreg··on Germany Is Burning Too Much Coal
This chart shows net generation. i.e. GWh/yr

Note that Germany earns more $ per MWh exported to France than vice versa. This is because on average France tends to have surpluses at night and in summer when electricity isn't in high demand. France imports electricity at high prices during cold snaps in winter when German wind tends to be blowing.

xxgreg··on Germany Is Burning Too Much Coal
Interesting fact - USA despite its cheap natural gas burns more coal per capita than Germany.

See chart:

https://ourworldindata.org/grapher/coal-consumption-per-capi...

Germany should also do better however.

xxgreg··on Germany Is Burning Too Much Coal
> renewables can not make up the difference then, now or in the foreseeable future

Note that renewable electricity supply has actually grown faster than nuclear has declined.

https://energytransition.org/wp-content/uploads/2017/01/img3...

xxgreg··on New Zealand to ban foreigners from buying existing houses
I think speculation is part of the equation, but not the only part. There is also lack of reasonably priced rentals and housing within a reasonable distance from transport infrastructure. Current build out is focused on the high end of the market, or green field sites in the middle of nowhere.
xxgreg··on New Zealand to ban foreigners from buying existing houses
Agreed. Funny that everyone is focusing on that point, which probably won't have much affect. I expect other policies such as below, will likely have more affect. Encouraging more housing at the lower end of the market seems like a good idea. Rather than pushing low income earners into the exurbs.

"LABOUR WILL PARTNER WITH THE PRIVATE SECTOR TO BUILD 100,000 AFFORDABLE HOMES

KiwiBuild will deliver 100,000 affordable houses over ten years for first home buyers. Half of these will be built in Auckland. That is a ten-fold increase in the number of affordable houses being built in Auckland each year, from 500 to 5,000."

http://www.labour.org.nz/kiwibuild

xxgreg··on The Need for Web UDP
Too late... Chrome already uses HTTP over UDP. https://en.wikipedia.org/wiki/QUIC
xxgreg··on India, Once a Coal Goliath, Is Fast Turning Green
China 9,679.30 MtCO2e

US 6,668.79 MtCO2e

India 2,432.18 MtCO2e

2010 figures, so India will be a bit closer the US by now.

https://en.wikipedia.org/wiki/List_of_countries_by_greenhous...

xxgreg··on Apple Is Working on a Dedicated Chip to Power AI on Devices
Related:

"Google has clearly committed to this vision of AI on the phone. At I/O, the company also unveiled a custom-built chip for both training and running neural networks in its data centers. I asked Google CEO Sundar Pichai if the company might build its own mobile chip along the same lines. He said the company had no plans to do so, but he didn’t rule it out either. “If we don’t find the state-of-the-art available on the outside,” he said, “we try to push it there.”"

"Companies such as Intel are already working on this kind of mobile AI processor."

https://www.wired.com/2017/05/google-really-wants-put-ai-poc...

Edit - also:

"There’s already one mobile processor with a machine learning-specific DSP on the market today. The Qualcomm Snapdragon 835 system-on-a-chip sports the Hexagon DSP that supports TensorFlow. DSPs are also used for providing functionality like recognizing the “OK, Google” wake phrase for the Google Assistant, according to Moorhead."

http://www.pcworld.com/article/3197412/mobile/heres-how-goog...

xxgreg··on The Boring Company [video]
I like the idea of putting cars underground, because then you can build a human focused city above. But the video shows an urban wasteland of aboveground high-speed traffic and no people. WAT?
xxgreg··on As New Zealand Courts Tech Talent, Isolation Becomes a Draw
There's a steadily increasing network of multi-day off-road cycle trails being built. http://www.nzcycletrail.com/map/ (click on Map View).
xxgreg··on As New Zealand Courts Tech Talent, Isolation Becomes a Draw
Yeah, which is why there is wind/kite-surfing, as a sport for the windy days ;)
xxgreg··on As New Zealand Courts Tech Talent, Isolation Becomes a Draw
Here's a photo of Wellington I took while commuting to work on my mountain bike. Trail head is 2mins from my office...

https://goo.gl/photos/9AQWmraCss6U9uVp7

If you're in into biking, or windsurfing Wellington is definitely a stunning place to live.

[edit] Also since everybody is talking about emus, this trail is actually called barking emu. But it is misnamed - since it's actually an Ostrich in the paddock up there.

xxgreg··on German institute successfully tests underwater energy storage sphere
There's a patch between Denmark and Norway which is ~700m deep. This a few hundred kms north of Germany. This is actually closer to most of Germany's wind generation than Bavaria, which is much further south.

https://www.researchgate.net/profile/Marie_Maar/publication/...

I'm not very bullish on the technology however, maintaining anything in the ocean is a difficult challenge. My guess is a mixture of batteries and power to gas would probably wind up being easier to scale up, and cheaper in the long run.

xxgreg··on Ask HN: Who is hiring? (October 2016)
We’re looking for Software Engineers to join our Wellington, New Zealand based team, where you will be using Clojure and ClojureScript to develop:

* A rich browser-based application with a declarative UI generator

* A Clojure-based DSL and related tools for our financial modelling team

* A highly scalable cloud-based infrastructure for our computation platform

VISA - we can support applicants with the visa application process.

https://montoux.com/senior-software-engineer https://montoux.com/junior-software-engineer

xxgreg··on LLV8 – An experimental top-tier compiler for V8
FYI http://v8project.blogspot.com/2016/08/firing-up-ignition-int...
xxgreg··on Why I'm joining the Dart Team
> What microcontrollers

STM32F7

* high-performance MCU with ARM Cortex-M7 core

* 32-bit ARM CPU @ 216 MHz

* 320 KB of RAM

* 512-1024 KB of Flash

* Single precision FPU and no fancy MMU

https://github.com/dart-lang/fletch

https://www.youtube.com/watch?v=Hx2iGEAvZRk

http://gotocon.com/dl/goto-cph-2015/slides/KasperLund_Intern...

Edit: Sounds like they plan to support the Arduino Due, but this is not implemented yet. They do not intend to support 8bit or 16bit MCUs.

xxgreg··on Flutter – Cross-platform mobile framework from Google
Yes we get all of the whatnots ;)

The developers on this project are using Atom https://github.com/atom/atom/ for their day to day Dart development. They are contributing to the Dart plugin https://github.com/dart-atom/dartlang, and implementing a Flutter specific plugin https://github.com/flutter/atom-flutter-dev. The Dart SDK https://github.com/dart-lang/sdk provides the basic source code analysis tools. All of these projects are open source, on github, and see regular commits.

xxgreg··on Flutter – Cross-platform mobile framework from Google
Flutter is build on top of the mojo. This exposes IPC interfaces to the devices. There are Java, Dart, C++, and I believe also go bindings for this. Not sure if this is in a usable state - but worth a look.

https://github.com/domokit/mojo/tree/master/mojo/go https://groups.google.com/a/chromium.org/forum/#!forum/mojo-...

xxgreg··on Origin of the name “Google”
“I described myself as the second greatest,” intoned Deep Thought, “and such I am.” Another worried look passed between the two programmers. Lunkwill cleared his throat. “There must be some mistake,” he said, “are you not a greater computer than the Milliard Gargatubrian at Maximegalon which can count all the atoms in a star in a millisecond?”. “The Milliard Gargantubrain?” said Deep Thought with unconcealed comtempt. “A mere abacus - mention it not.”

“And are you not,” said Fook, leaning anxiously forward, “a greater analyst than the Googleplex Star Thinker in the Seventh Galaxy of Light and Ingenuity which can calculate the trajectory of every single dust particle throughout a five-week Dangrabad Beta sand blizzard?”

https://books.google.com/books?id=cUSqB1xA8OkC&pg=PT89&dq=go...

xxgreg··on Dart for Android apps with 120fps
Building an Android app with Sky is basically similar to using phonegap. i.e. You use HTML/CSS and web components, but it promises better performance and a more modern api.

The codebase is a forked version of chromium, but with a lot of legacy web cruft removed. The DOM api is replaced with a new more modern api. CSS has some important performance bottlenecks removed.

It also allows linking to off main thread code written in C++, Java, Go, JS, Python and Dart. Main thread code must be written in Dart.

They are aiming for the performance of native, but with a development toolset similar to the web.

IMHO a very worthwhile experiment.

Edit: The specs here give an idea of what the system is/does.

https://github.com/domokit/mojo/tree/master/sky/specs

← PreviousPage 3 of 6Next →