HNHacker News
TopNewBestAskShowJobs

gardaani

1,590 karma · joined August 31, 2018

submissionscomments
gardaani··on Defold game engine source now available and free to use for commercial games
A developer from King explained why Defold is publicly available in 2016: https://news.ycombinator.com/item?id=11364729
gardaani··on Defold game engine source now available and free to use for commercial games
I found an article about writing games in Defold and Godot. It's a bit old (it was written a year ago).

https://agameamonth.net/defold-vs-godot-my-experiences/

gardaani··on Swift 5.3 Will Be Supported on Windows and Additional Linux Distributions
There's libraries which wrap SDL for Swift and run on Mac, iOS and Linux. Someone should help them to get support for Windows.

This project has a good list of SDL Swift libraries at the end of the page: https://github.com/ctreffs/SwiftSDL2 - but I don't know which one is the best one..

Then, we need to get Swift to compile for Android..

gardaani··on Ask HN: Dark mode for HN please?
Please, don't just force a dark mode to everyone with "prefers-color-scheme: dark".

Some are using OS in light mode, but would still like to use the dark mode. Sometimes, it might be useful to use the light version on dark systems. (e.g. if the dark css is not well made or looks bad on some monitors)

Here's a good thread about it: https://twitter.com/SaraSoueidan/status/1245722023361380354

gardaani··on US blocks shipments of semiconductors to Huawei
They are already building their own chips. Huawei has started to use 14nm chips manufactured by Shanghai-based SMIC. They plan to replace TSMC's chips with SMIC's chips in their phones. TSMC blocking will just accelerate their plans.

https://www.gizmochina.com/2020/05/12/huawei-kirin-710a-smic...

gardaani··on Not quite a car, not quite a motorcycle: a vehicle built for one
Estonian Nobe 100 is similar, but can carry two persons. It also has a cool retro design: https://jalopnik.com/this-planned-electric-three-wheeler-loo... https://mynobe.com
gardaani··on Webrecorder: Make an interactive copy of any web page that you browse
That looks great! Firefox should have something like SingleFile built-in. Instead of just copying features from Chrome, they should lead the innovation and add useful features like this.
gardaani··on Suitcase: A macOS tool for deploying GUIs for simple commands and scripts
Mac Quick Actions and Automator can be used for the simplest cases. I've build several file processing Quick Actions, which I can run by pressing buttons in Finder.

https://support.apple.com/guide/automator/use-quick-action-w...

gardaani··on Xubuntu 20.04
They don't have a 32-bit version anymore. That's sad. I know that Ubuntu has dropped 32-bit support but I was hoping that Xubuntu would still provide it.

Will the same happen for Lubuntu? Currently, there's a 32-bit version for 19.10, but they haven't released 20.04, yet.

I have several 32-bit computers, so I need a 32-bit OS for them. Are there any good lightweight 32-bit distros left with long term support?

gardaani··on If a MacBook Pro runs hot or shows high kernel CPU, try charging it on the right
I have a similar issue when I use my external SSD with my MacBook Air. If it is connected to the left side, the WiFi gets blocked. If I connect it to the right side, WiFi works fine.

I tried foil, but it didn't help except when it was connected to ground.

gardaani··on The irony of Apple homepage and Safari WebP support
I'm happy that Apple hasn't adopted WebP. JPEG XL and AVIF are better formats. Even Google is considering creating WebP2. WebP is already an outdated format (no HDR support), which should just die.
gardaani··on Rämixx500 – An Open Hardware remake of the Commodore Amiga 500+ mainboard
If you have an Amiga (or any other old electronic device), then you should remove any old batteries inside. Batteries leak and destroy electronics.
gardaani··on Colornames.org – A collaborative effort to name all 16.7M colors
Every time I see that color name, I think about death. #663399 is the color of death.
gardaani··on Secure Rust Guidelines
Actually, I have found FallibleVec written by Mozilla [1] but I haven't found anything for other containers, yet.

[1] https://github.com/mozilla/mp4parse_fallible

gardaani··on Secure Rust Guidelines
I'm having problems fulfilling this requirement in my libs: "Crates providing libraries should never use functions or instructions that can fail and cause the code to panic."

The Rust standard library Vec, HashMap etc. can cause a panic in Rust, if the device (such as a mobile phone with a small memory) runs out of memory.

C and C++ standard libraries (malloc, std::vector, std::map..) can handle those situations by returning null or throwing an exception.

I wish Rust had some easy way to recover from out-of-memory situations when using the standard library. I have been considering writing my own out-of-memory safe Vec, HashMap etc, but it can't be the right way to do it..

gardaani··on Wide Gamut Color in CSS with Display-P3
You are right! I had tried it in SVG, where solid P3 works, but gradient P3 fails: https://jsfiddle.net/6pL12ct0/
gardaani··on Wide Gamut Color in CSS with Display-P3
This all gets interesting when mixing sRGB, Display-p3 or Lab colors in gradients and animations. There's an open issue about it at W3C: https://github.com/w3c/csswg-drafts/issues/4647

I think Safari currently fails to display such gradients.

gardaani··on Wide Gamut Color in CSS with Display-P3
The latest CSS Color spec includes support for Lab colors in linear space. It covers all possible colors. The syntax supports decimal numbers, so you can have as much precision as you want (depending how much the browser supports internally): lab(75.12321% 30.4124 -12.32434353)

In addition to supporting all colors, it also supports HDR (very bright pixels) by allowing the lightness to go above 100%. So, this is very bright red: lab(400% 80 70).

Most design software (Photoshop, Affinity Designer..) can display colors as Lab values and those can be used in CSS. Since lab colors are not intuitive for humans, CSS also supports Lch (lightness, chroma, hue), which is more human friendly.

Browser vendors are currently adding Lab support to their browsers.

https://www.w3.org/TR/css-color-4/#lab-colors

gardaani··on Wide Gamut Color in CSS with Display-P3
This may already happen on Safari and Mac without support for Wide Gamut Color. In that case, the P3 color is converted to sRGB, which typically means clamping to sRGB.
gardaani··on FLIF – Free Lossless Image Format
Fixing jumping pages doesn't require progressive image formats. All browsers soon support setting default aspect ratio for all images: https://twitter.com/jensimmons/status/1220114427690856453
gardaani··on FLIF – Free Lossless Image Format
I hope that JPEG XL will be simpler than the competitors. If it's compression ratio is similar to AVIF and it can do HDR, then I'll all for it!

AVIF (and its image sequences) seems to be fairly complicated. Here's few comments [1] about it:

"Given all that I'm also beginning to understand why some folks want something simpler like webp2 :)"

"Despite authoring libavif (library, not the standard) and being a big fan of the AV1 codec, I do occasionally find HEIF/AVIF as a format to be a bit "it can do anything!", which is likely to lead to huge or fragmented/incomplete implementations."

Anyway, instead of adding FLIF, AVIF, BPG, and lots of similar image formats to web browsers, I think only one good format is enough and JPEG XR might be it. After something has been added to web browsers, it can't be removed.

Safari hasn't added support for WebP (which is good, there's no need for WebP after AVIF/JPEG XR is out) and it hasn't added support for HEIF (which is weird, considering Apple is using it on iOS), but maybe they know that there's no need to rush.

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=960620...

gardaani··on Always Review Your Dependencies, AGPL Edition
It is also difficult to know which dependencies have unsafe code. There's good discussion about it on reddit: https://www.reddit.com/r/rust/comments/ekpa3i/is_anyone_conc...
gardaani··on Huawei expected to surpass Apple to become world’s No 2 phone maker
Their plan is to replace foreign PCs and software in all government offices and public institutions in three years. It means replacing 20-30 million PCs! That will definitely also accelerate the OS development. https://www.ft.com/content/b55fc6ee-1787-11ea-8d73-6303645ac...
gardaani··on It's time to replace GIFs with AV1 video
It'll be fixed when AV2 comes out..
gardaani··on It's time to replace GIFs with AV1 video
Safari 11.1 supports any video in <img> tag and it does all the things you want: https://calendar.perfplanet.com/2017/animated-gif-without-th...

There is a feature request for Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=791658

gardaani··on Show HN: 2D Graphics on Modern GPU
There has been research how to do that with adaptively sampled distance fields [1].

The author (Frisken) also created a 2D drawing tool called Mischief, which is an insanely fast vector graphics software. It's available in the Mac App Store if you want to try it. I think Foundry owns the patents now and they are using the technology in their products.

[1] https://www.merl.com/publications/docs/TR2000-15.pdf

gardaani··on Flutter desktop shells
They are still using OpenGL on Mac. Apple has deprecated OpenGL.

I'd definitely wait until the Flutter team has replaced the OpenGL dependency with Apple's Metal. (I really hope they will do it.)

gardaani··on Alibaba Puts SDK Flutter to the Test
Here's another performance comparison (2018). It compares Flutter to native iOS app. Flutter consumes 2x more CPU and memory for an app with 60fps rendering.

https://medium.freecodecamp.org/how-fast-is-flutter-i-built-...

gardaani··on Notarizing Your App Before Distribution
Currently, apps distributed in Mac App Store must be sandboxed. Notarized apps distributed outside Mac App Store must have hardened runtime enabled.

It's interesting that Apple has created two similar protecting technologies. Here's a good article explaining the similarity / differences: https://lapcatsoftware.com/articles/hardened-runtime-sandbox...

gardaani··on Native image lazy-loading for the web
I hope that they ship this with image intrinsicsize / aspect-ratio or whatever it is called now. Otherwise this lazy-loading will make page jumping and layout instability worse, because images are loaded only after the user has scrolled to their position.

https://googlechrome.github.io/samples/intrinsic-size/

← PreviousPage 7 of 9Next →