HNHacker News
TopNewBestAskShowJobs

gardaani

1,590 karma · joined August 31, 2018

submissionscomments
gardaani··on Blend2D – 2D Vector Graphics Engine
W3C is creating a subset of SVG called "SVG Native". It is intended for icons and simple graphics, so it won't have support for text, scripts, links or XSL processing. Also, use of CSS or animations isn't recommended. It will be similar to SVG in OpenType fonts: https://docs.microsoft.com/en-us/typography/opentype/spec/sv...
gardaani··on The Difference Between ‘Violet’ and ‘Purple’ (2015)
The photopigment absorption curve [1] shows that the red (L) cones have a slight rise at 400nm (violet wavelength). Also, Wikipedia's image shows it [2].

That's why cameras also have a bump at 400mn, as shown on this manufacturer's page (under the relative sensitivity tab) [3]. Cameras must have it so that they can capture light at 400nm the same way our eyes do. Otherwise those colors would look wrong in pictures.

That is also how computer monitors can display a color that we see as violet. They output a bit of red and lots of blue, which excites our red and blue cones and give the same stimulus as violet at 400nm wavelength. So, monitors can't output violet, but they can trick our eyes to think that there is violet.

The same happens for yellow. Monitors can't output yellow wavelength (590nm), but they output red and green, which excites our red and green cones and we think we see yellow. So, you could also say that when you see yellow on web pages, it isn't really yellow. It is just a mix of red and green.

[1] http://www.handprint.com/HP/WCL/color1.html

[2] https://en.wikipedia.org/wiki/Photoreceptor_cell#/media/File...

[3] https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=40...

gardaani··on Article 13 gets legalized because Sweden pushed the wrong voting button
According to Finland's national public broadcasting company, one Finnish MEP also pushed the wrong button.

https://yle.fi/uutiset/3-10707635: "However, Pietikäinen later said she voted wrong accidentally. Her intention was to support the directive."

"Pietikäinen tosin kertoi myöhemmin äänestäneensä vahingossa väärin. Hänen tarkoituksensa oli ollut kannattaa esitystä."

It seems that it is very easy to press wrong buttons.

gardaani··on Ubuntu Touch Safety Architecture
Sailfish OS is still alive. The company, Jolla, doesn't sell physical phones anymore. But, it is possible to purchase a ready compiled Sailfish OS (Europe only) or to compile it yourself [1]. The OS can be installed on existing hardware, such as Sony Xperia X or Gemini PDA. There are also unofficial community ports for other devices [2]. I have a 5 years old Jolla phone with Sailfish OS and I'm still getting official OS updates. :)

[1] https://sailfishos.org/wiki/Sailfish_X_Build_and_Flash

[2] https://en.wikipedia.org/wiki/Sailfish_OS#Community_enthusia...

gardaani··on Google is reportedly shutting down its in-house VR film studio
Varjo VR-1 headset gives 60PPD making reading text possible. It is meant for industrial design, modelling and prototyping. It is a VR only headset, but they plan to convert it to an AR headset. It would be the same VR headset including a camera. The camera image is projected to the VR world. The display resolution should make it workable.

https://varjo.com/vr-1/

gardaani··on The Web We Broke
I would partly blame the web browsers. They should have better dev tools to check that pages are accessible.

I know that Firefox has its accessibility dev tool tab, but I don't really understand it. It looks very technical.

Chrome has Audit tab which checks that the web page is accessible. Fixing the errors helps, but I still have no idea how screen readers or other assisting technologies show the page.

Why web browsers can't have accessibility mode which changes the web page to show only data that screen readers and other accessibility tools see. Replace images with alt texts, remove css layout and colors, etc.

Browsers have a mode to check responsive layouts for mobiles. They should have a similar mode for accessibility.

gardaani··on Counting Bugs in Windows Calculator
It will be interesting to see how soon they will convert it to C++/WinRT because C++/CX will be retired at some point.

The first step toward full C++/WinRT support within Visual Studio and the eventual retirement of C++/CX happened today with the availability of build 17025 of the Windows SDK Insider Preview.

https://moderncpp.com/2017/11/01/cppwinrt-in-the-windows-sdk...

gardaani··on KV Storage, the Web's First Built-In Module
The more APIs browsers have, the more expensive it is for browser vendors to implement and maintain them. Opera and Edge already gave up.

W3C and TC39 are constantly publishing new APIs and features. They are pushing the Web towards a single implementation (Chromium). It will become too expensive to have separate implementations.

gardaani··on In Estonian parliamentary election, 44% of the votes were cast online
Usually online voting supporters say that it would increase voter turnout. It seems that it hasn't happen in Estonia: 64.2% in 2015 and 63.7% in 2019 [1][2].

Also, I am a bit worried that online voting might give young tech-savvy people an advantage over old and poor people who don't have access to computers or mobile phones. Has there been studies about demographies in these elections?

[1] https://en.wikipedia.org/wiki/2015_Estonian_parliamentary_el... [2] https://en.wikipedia.org/wiki/2019_Estonian_parliamentary_el...

gardaani··on The rise of wgpu
> With wgpu-rs we can finally deprecate the old gfx and have a solid recommendation for people getting started with graphics in Rust.

Does this mean that gfx-rs (the low level API) is deprecated and no longer maintained?

gardaani··on Implications of Rewriting a Browser Component in Rust
Dropbox is using Rust to decompress Brotli: https://blogs.dropbox.com/tech/2016/06/lossless-compression-...
gardaani··on Apple's move to ARM-based Macs creates uncertainty
I don't know how large is "billboard sized", but iPad Pro with full Photoshop CC can open 3GB 12000x12000 PSD files without any lag.

https://petapixel.com/2018/10/30/apples-new-ipad-pro-can-edi...

gardaani··on Why a Grape Turns into a Fireball in the Microwave
Someone has written a book about ball lightings as an energy source. Maybe grapes will do the same thing...

https://books.google.com/books?id=8_lfAgAAQBAJ&printsec=fron...

gardaani··on Better Language Models and Their Implications
Few MIT students did that with their simple text generator. It is one way to expose conferences with low submission standards.

http://news.mit.edu/2015/how-three-mit-students-fooled-scien...

gardaani··on The text of Article 13 and the EU Copyright Directive has been finalised
About a year ago, Google removed all Finnish music from YouTube because there were contractual disputes about royalties. In less than 24 hours, the dispute was settled, most likely favoring Google and YouTube. It seems to be a very powerful tactic.

https://nordic.businessinsider.com/last-night-finland-woke-u...

gardaani··on Tiny PWAs and why I keep building them
If you want to see more PWAs, then go to the PWA Directory maintained by Google: https://github.com/GoogleChromeLabs/gulliver

Interesting, there is one speedometer there, created 2-3 years ago. The source code is even available in GitHub. It seems that it isn't easy to find PWAs? https://pwa-directory.appspot.com/pwas/5079866537934848

gardaani··on EU and Japan create world's biggest free trade zone
Finland - here's the calculator for customs duties and VAT: https://tulli.fi/en/customs-duty-calculator
gardaani··on EU and Japan create world's biggest free trade zone
Currently I can order cheap products (less than 20€) from China without customs fees or VAT. The shipping cost is around 1€. It means that it is cheaper to buy from China than from my local store. Unfortunately, that is about to change soon (customs fees for all products from China).

Having something like that between EU and Japan would definitely boost the trade.

Edit: I just checked and the same no customs fees rule applies already to Japan. I wonder if it is going to change at the same time as Chinese products get the customs fees.

gardaani··on Firefox 65.0 released
FF65 also supports WebP images and animations. Here's few test images: https://developers.google.com/speed/webp/gallery1
gardaani··on Firefox 65.0 released
I have tried AV1 video on Chrome and it seems to be using the same amount of CPU as VP9 on my computer.

I can't test Firefox support for AV1 on my Mac, because it seems to work only on Windows.

gardaani··on Writing an OS in Rust: Advanced Paging
steveklabnik: "Not even Rust people think that the kernel should adopt Rust."

https://news.ycombinator.com/item?id=16547450

gardaani··on When FP? And When OOP? (2013)
I found an article which has similar rules:

* Use FP when you need to build something purely computational.

* Use OOP when you want/need to build something generic for other people to use.

* But if you are application or game developer, ECS way of thinking brings a lot of benefit to the table.

https://hackernoon.com/when-not-to-use-ecs-48362c71cf47

gardaani··on C++ Modules Might Be Dead-On-Arrival
This C++ code actually compiles with clang++. Incredible!

    int main(int argc, char *argv<::>)
    <%
        if (argc not_eq 1 and argc not_eq 2) <% return 1; %>
        return 0;
    %>
https://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C
gardaani··on I have magnets implanted in my hands
Thousands of Swedes are also doing that. They store credit cards and key cards under their skin.

https://nordic.businessinsider.com/swedish-people-embed-micr...

gardaani··on Google launches an AI contest for social good
Here's the simplest AI example I have found so far. It is called Binary Driver AI.

if (car.distance < 5) {

  [car slowDown];
}

else if (car.distance >= 5) {

  [car speedUp];
}

This AI was created by Apple. You can see it on Page 81 on this pdf:

https://devstreaming-cdn.apple.com/videos/wwdc/2015/608rpwq1...

So, AI means any algorithm, which can be run by a computer..

gardaani··on MagicaVoxel: A free voxel art editor and path tracing renderer
This is what every software should do. I don't care if software isn't free or open source, but file formats should be documented so that they can be read later or processed by other tools.
gardaani··on V8 release v7.2
If you think that the # syntax for private fields needs to be improved, then go to JS Committee's GitHub Issues and give feedback about it:

https://github.com/tc39/proposal-class-fields/issues

There's at least three specifically about the #:

https://github.com/tc39/proposal-class-fields/issues/177

https://github.com/tc39/proposal-class-fields/issues/149

https://github.com/tc39/proposal-class-fields/issues/142

Remember to be constructive or just give a thumbs up to comments you like.

gardaani··on Show HN: Fully-automatic image background removal tool
Spektral, a Danish company, has been doing this in real-time on iPhone for live video. No surprise, Apple bought them for more than $30 million: https://www.digitaltrends.com/photography/apple-spektral-aqu...
gardaani··on Virgin Galactic successfully reaches space
This is the first time a space flight from U.S. takes humans to space after the Space Shuttles were retired.
gardaani··on Ask HN: Which abandoned proprietary software would you resurrect?
There's SailfishOS, which is an alternative to Android and iPhone. It's a mobile Linux OS with an optional support for Android apps.

It's not the world's most advanced mobile OS, but a good way to escape the Apple and Google ecosystems.

It is possible to purchase the OS and install it to Sony Xperia phones. https://shop.jolla.com

← PreviousPage 8 of 9Next →