HNHacker News
TopNewBestAskShowJobs

astn

72 karma · joined February 25, 2013

submissionscomments
astn··on How long is that Bézier?
I've got nice analytical solution for the quadratic bezier: https://astiopin.github.io/2019/01/04/qbez-parabola.html
astn··on Why is 2 * (i * i) faster than 2 * i * i in Java?
Yeah, sometimes the compiler unrolls too much and innocent looking one-liner can be compiled into a monstrosity like this:

https://godbolt.org/z/aKtko5

astn··on MacOS Mojave removes subpixel anti-aliasing, making non-retina displays blurry
>It requires knowing your foreground and background colors at render time, which is an unnatural requirement when you want to do GPU-accelerated compositing

Most of the apple hardware supports ARB_blend_func_extended or even EXT_framebuffer_fetch, which lets you to implement subpixel blending with ease. Otherwise you just have to fall back to traditional alpha blending and render each glyph in three passes for each color channel, which is not that hard either.

astn··on Top Blender developers of 2016
https://www.blendernation.com
astn··on Open-Source 3D Graphics Design: Where to Begin
> There's plenty of other software out there that's meant to be used with tiled windows.

There is a tiling window manager INSIDE blender used to control its window frames. It works pretty much like any other tiling manager. You immediately grasp the idea if you've ever used one.

astn··on Open-Source 3D Graphics Design: Where to Begin
>It could've been a word processor and it would still be terrible.

Like vim or emacs?

>window panes are very much a standardized UI part which has a completely non-standard interaction design in Blender. For no reason.

It's called "tiled window management". Lots of people find it more comfortable to use than the classic overlapping windows.

astn··on Wikileaks: Julian Assange's internet access 'cut'
>I don't know why they would put out a few hundred gigabytes of fake files.

Looks like you can check it now. The keys went public:

pre-commitment 3: UK FCO f33a6de5c627e3270ed3e02f62cd0c857467a780cf6123d2172d80d02a072f74

pre-commitment 2: Ecuador eae5c9b064ed649ba468f0800abf8b56ae5cfe355b93b1ce90a1b92a48a9ab72

pre-commitment 1: John Kerry 4bb96075acadc3d80b5ac872874c3037a386f4f595fe99e687439aabd0219809

https://twitter.com/wikileaks

astn··on Google's “Director of Engineering” Hiring Test
"Draw the first letter of the alphabet please".

'a'

No. The right answer is 'A'. We will stop here because it's obvious that you don't have the necessary skills.

astn··on Zero-cost futures in Rust
They do, but to actually use it, to pass it anywhere, you have to either wrap it in some other object (std::function, as comex pointed out) or use a template.
astn··on Zero-cost futures in Rust
In C++ lambdas have limited size (about 3 machine words). If it's context is larger than that, the data may be allocated on heap (if compiler can't optimize that allocation out).
astn··on Google Pixel C Review
>The JVM itself has a certain amount of unavoidable overhead

That is not a "certain amount of overhead" but the inherent incompatility with the modern hardware. With Java writing cache-friendly code is extremely difficult: boxing and indirections are encouraged while primitive types are cumbersome and value types are possible only through the direct byte manipulation. Memory overhead is enourmous. A simple collection like a hashmap of short strings can have up to a 75% overhead.

astn··on Google Pixel C Review
Java.
astn··on WebGL water scene
This could be done much simplier by masking the boat with stencil buffer.
astn··on “The Home Information Terminal – A 1970 View” by John McCarthy [pdf]
> assumed that something like the WWW was going to come in the early 1980s

It actually did: https://en.wikipedia.org/wiki/Minitel

astn··on Death to C
Ada.
astn··on Valve Announces Source 2, and It’ll Be Free
>a minimal engine with plain helper functions that let you use, understand and talk to OpenGL

You can try http://libcinder.org , http://www.openframeworks.cc or http://www.sfml-dev.org

astn··on Gnome 3.12 Released
Use workspaces, that is the best way to switch between maximized windows in gnome. Even easier with 'workspaces to dock' extension - just scroll at the right edge of the screen.
astn··on Gnome 3.12 Released
You can do both in gnome without any tweaking.
astn··on The MS Surface Pro
Actually N8000 is a 10 inch tablet.
astn··on The MS Surface Pro
Samsung Galaxy Note N8000 tablet uses wacom digitizer.