Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jasper_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
94 ms
·
961.
▲
by
Jasper_
6y ago
Underlying helper libraries like math utilities are often extracted and put under independent test. A physics engine often has so much state (and isn't always guaranteed to be deterministic!) that doing any sort of unit testing at the
962.
▲
by
Jasper_
6y ago
Margins on brick and mortar are extremely thin -- 3-4% overhead is considered excellent.
963.
▲
by
Jasper_
6y ago
Sure. That's fair, if the user believes the 30% is worth the extra safety that Apple provides, they should be able to pay that. But why the restriction that developers cannot even hint that less expensive options are available through
964.
▲
The Missing Guide to Modern Graphics APIs – 1. Intro
(blog.mecheye.net)
4 points
by
Jasper_
6y ago
|
0 comments
965.
▲
by
Jasper_
6y ago
Not allowed by Apple. Part of Rule 3.1.1: > Apps and their metadata may not include buttons, external links, or other calls to action that direct customers to purchasing mechanisms other than in-app purchase. Yes, telling customers they
966.
▲
by
Jasper_
6y ago
Logic pissed off a lot of composers with the lack of 32-bit AUs in newer versions. The few producers I know who love Logic aren't upgrading to Catalina and are already considering switching to Windows.
967.
▲
by
Jasper_
6y ago
This to me says one of two things: 1. Either their engineering org is so bad they can't afford to spend some of their massive resources on backwards compatibility. 2. They just don't give a shit. Either way, not a great look.
968.
▲
by
Jasper_
6y ago
Doing that reduction is surprisingly difficult, and usually a serial algorithm that runs on the CPU, and a naive approach is a resulting triangle set is not efficient to a GPU, but that's what toolkits like cairo, Direct2D, nanovg do.
969.
▲
by
Jasper_
6y ago
2D graphics on the GPU is an open research problem. My understanding is that piet-gpu and Pathfinder, both state of the art research projects, use coverage-based solutions based on the GPU. MSAAx16, which is incredibly expensive on mobile d
970.
▲
by
Jasper_
6y ago
Yes. I expect generic fine-grained locking, especially per-object leaks, to be less performant for multi-threaded code too, as locks aren't cheap, and even with the GIL, lock overhead could still be worse than a good scheduler. Any sol
971.
▲
by
Jasper_
6y ago
2D graphics uses coverage-based antialiasing which computes the coverage over the pixel square. https://nothings.org/gamedev/rasterize/
972.
▲
by
Jasper_
6y ago
People seem to keep misunderstanding the GIL. It's the Global Interpeter Lock, and it's effectively the lock around all Python objects and structures. This is necessary because Python objects have no thread ownership model, and th
973.
▲
by
Jasper_
6y ago
I have never seen a supermarket "push" generic brands, unless you just mean it's cheaper. Amazon does not attempt to be impartial shelf space, it has "Best Choice" and "Amazon Pick" labels and sorts and ra
974.
▲
by
Jasper_
6y ago
According to Valve, they deployed https://github.com/ValveSoftware/GameNetworkingSockets successfully on CS:GO.
975.
▲
by
Jasper_
6y ago
The CPU can pass state to the GPU. I imagine that a lot of that state (like the clip plane for the top of the water volume, including the normal which provides the "jiggle") was computed on the CPU, which can be updated by a simpl
976.
▲
by
Jasper_
6y ago
Here's one I ran into last year. https://pbs.twimg.com/media/ECqxWUJU8AA28sQ?format=png
977.
▲
by
Jasper_
6y ago
Nintendo left symbol maps for the game on the disk, so they likely found the random number generator function within that, which is named cM_rndF. To count invocations, you could patch the game to increment a counter on every RNG call, and
978.
▲
by
Jasper_
6y ago
> Let me just say that the way these 3 machines handle everything is dumb. There's absolutely nothing intuitive about using 0x14 as a replacement for zero. There's absolutely nothing intuitive about using the previous Y coordin
979.
▲
by
Jasper_
6y ago
For the simplest case, where you have contiguous memory for your framebuffer storage and no MMIO, try the CMA helpers: https://github.com/torvalds/linux/blob/master/drivers/gpu/dr... I wrote a
980.
▲
by
Jasper_
6y ago
Open source's organizational issue is that maintainers tend to prefer what's fun to work on, and often boring administrative work or difficult bugs go unfixed, especially if they have cut through multiple levels module ownership.
981.
▲
by
Jasper_
6y ago
What's wrong with reading back an object ID buffer GL_SELECT style?
982.
▲
by
Jasper_
6y ago
fbcon emulates the VT-100. The VT-100 has no support for text formatting, unfortunately. If a new standard was proposed and you could get acceptance, similar to some of the other newer protocols like displaying images in the terminal champi
983.
▲
by
Jasper_
6y ago
There's also FBIOGET_VSCREENINFO / FBIOPUT_VSCREENINFO through which you can set the current screen information. You can also do fake double buffering this way, by allocating a mode that's twice as tall, drawing to different
984.
▲
by
Jasper_
6y ago
> You can't write to the framebuffer device while X11 is running because it will just get overwritten immediately. You can't write to fbdev because that's not what X11 is using to display buffers to the screen, it uses the
985.
▲
by
Jasper_
6y ago
Yes, since a few years ago. https://download.nvidia.com/XFree86/Linux-x86_64/396.51/READ...
986.
▲
by
Jasper_
6y ago
You can't do it from an X11 session, which uses DRM/KMS instead of fbdev, hence you will get the compatibility fbdev buffer, which will be all 0s. You need to be VT switched away (hit Ctrl+Alt+F3 or similar).
987.
▲
by
Jasper_
6y ago
Yes. fbdev is kept alive for compatibility (and fbcon) reasons, but it's a really outdated API and drivers have to jump through hoops to support it. Please use dumb buffers when necessary. See a simple example here: https://
988.
▲
by
Jasper_
6y ago
The problem is that the flaws of humans tend to be random and stochastic, while the flaws of machines tend to be consistent and systematic. This is the at least the fifth example of Tesla missing stationary objects on the road. Humans might
989.
▲
by
Jasper_
6y ago
One of my favorite papers by Bacon et al expands on this intuition that garbage collection and reference counting are opposite tradeoffs in many respects, and gives a formal theory for it. My views on gc/rc haven't been the same s
990.
▲
by
Jasper_
6y ago
This doesn't account for all the Mac-specific graphics tooling like the Metal compiler, metal-al, metallib and such.
More ›