News for hackers. Stuff that matters.

astn

Re:How long is that Bézier? on Friday January 04, 2019 @06:34AM (#18823296)
I've got nice analytical solution for the quadratic bezier: https://astiopin.github.io/2019/01/04/qbez-parabola.html
Re:Why is 2 * (i * i) faster than 2 * i * i in Java? on Saturday December 01, 2018 @09:50AM (#18576984)
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

>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.

Re:Open-Source 3D Graphics Design: Where to Begin on Tuesday November 08, 2016 @04:10AM (#12898742)
> 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.

Re:Open-Source 3D Graphics Design: Where to Begin on Monday November 07, 2016 @03:09PM (#12894556)
>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.

Re:Wikileaks: Julian Assange's internet access 'cut' on Monday October 17, 2016 @04:41AM (#12723479)
>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

Re:Google's “Director of Engineering” Hiring Test on Thursday October 13, 2016 @03:11PM (#12703240)
"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.

Re:Zero-cost futures in Rust on Thursday August 11, 2016 @02:56PM (#12270751)
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.
Re:Zero-cost futures in Rust on Thursday August 11, 2016 @01:19PM (#12270040)
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).
Re:Google Pixel C Review on Tuesday January 26, 2016 @12:13AM (#10971928)
>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.

Re:Google Pixel C Review on Monday January 25, 2016 @10:51PM (#10971728)
Java.
Re:WebGL water scene on Sunday November 29, 2015 @04:18PM (#10646111)
This could be done much simplier by masking the boat with stencil buffer.
> assumed that something like the WWW was going to come in the early 1980s

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

Re:Death to C on Saturday May 02, 2015 @03:13PM (#9478169)
Ada.
Re:Valve Announces Source 2, and It’ll Be Free on Wednesday March 04, 2015 @12:27PM (#9145803)
>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

Re:Gnome 3.12 Released on Thursday March 27, 2014 @04:28AM (#7479181)
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.
Re:Gnome 3.12 Released on Thursday March 27, 2014 @01:18AM (#7478758)
You can do both in gnome without any tweaking.
Re:The MS Surface Pro on Monday February 25, 2013 @09:41AM (#5279133)
Actually N8000 is a 10 inch tablet.
Re:The MS Surface Pro on Monday February 25, 2013 @05:53AM (#5278296)
Samsung Galaxy Note N8000 tablet uses wacom digitizer.