Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
whowouldathunk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
whowouldathunk
9y ago
Not using the OS compositor locks you out of some cool stuff like backdrop blur and global lighting effects. At least on Windows, where both the native UI framework (XAML) and web platform use DirectComposition and thus can both benefit fro
32.
▲
by
whowouldathunk
9y ago
I work on the Windows team. Things are very different now. Source control especially: https://blogs.msdn.microsoft.com/bharry/2017/05/24/the-large... It still takes a lot of political effort to change pr
33.
▲
by
whowouldathunk
9y ago
I'm using "immediate mode" to mean: while (true) { processInput() updateState() paint() } That will kill battery unless you write code to not update until input or app state changes
34.
▲
by
whowouldathunk
9y ago
Battery life would take a dive if everyone adopted immediate mode UI for apps. The compromise is something like Win32, where the OS tells you which rectangles in your app to repaint so most of the time you're not doing anything. Both o
35.
▲
by
whowouldathunk
9y ago
Yes, and I'm saying I don't see anything wrong with that.
36.
▲
by
whowouldathunk
9y ago
The point is disputed: to what extent are the differences biological vs. environmental? Hiring practices could influence preferences.
37.
▲
by
whowouldathunk
9y ago
> there preferences will be set either by nature or culture . Culture is something that hiring practices can change.
38.
▲
by
whowouldathunk
9y ago
New drugs are making things worse? Tell that to my oncologist friends. STEM is more than CRUD apps.
39.
▲
by
whowouldathunk
9y ago
If a nursing school made a push for recruiting more male nurses I wouldn't feel like my software engineering career was a wrong choice.
40.
▲
by
whowouldathunk
9y ago
There is a lot of technology involved in healthcare and teaching.
41.
▲
by
whowouldathunk
9y ago
Ugh, makes me think of COM https://msdn.microsoft.com/en-us/library/windows/desktop/ms6...
42.
▲
by
whowouldathunk
9y ago
I thought this was new Firefox UI at first. This seems like a service that would be nice to integrate into OS share flows. Windows, Android, and iOS all have share contracts and that seems more natural than going to a website.
43.
▲
by
whowouldathunk
9y ago
The problem with that is Windows' lack of apps. The UX is better and will be consistent regardless of if you're sharing from an app, File Explorer, or file picker. Mozilla's service could just plug into it.
44.
▲
by
whowouldathunk
9y ago
Seems superfluous. In Windows 10 you can right click on a file > Share > choose any app or person to send the file. Or in the latest version you can just drag/drop a file on top of a person pinned to your taskbar. Disclosure: I w
45.
▲
by
whowouldathunk
9y ago
That's what a bitmap asset is.
46.
▲
by
whowouldathunk
9y ago
> Vector graphics will solve this, but is not mainstream yet. Then you're trading off battery life vs. space. Vector graphics can be far more expensive to render than bitmaps.
47.
▲
by
whowouldathunk
9y ago
XAML has a high learning curve and lots of ways to shoot yourself in the foot. But it works well. I shipped an embedded real-time data visualization product that used WPF XAML for the UI and ran perfectly smooth on a second-gen Intel Atom.
48.
▲
by
whowouldathunk
9y ago
Alt-Left goes back in Settings for me, and there is a back button at the top left of the window.
49.
▲
by
whowouldathunk
9y ago
C++ has always supported callbacks and has libraries for promises [1] and event loops [2]. Co-routines (i.e., await) are coming soon. [1]: https://msdn.microsoft.com/en-us/library/dd492427.aspx [2]: https:/&
50.
▲
by
whowouldathunk
9y ago
Don't know, but it's been discussed publicly rather recently: https://github.com/Microsoft/cppwinrt https://msdn.microsoft.com/en-us/magazine/mt745094.aspx "Teams within Micros
51.
▲
by
whowouldathunk
9y ago
> Is GUI programming in C++ still a thing, though? All of the new Windows 10 UI is C++ (using the UWP XAML framework, which is implemented in C++). The paper says metaclasses are a way to avoid language extensions like UWP's C++
52.
▲
by
whowouldathunk
9y ago
> ALSO: Your example is much slower than the same server written in Node.js, haha. Because the language doesn't support evented programming. Uhh, how do you think Node.js is implemented?
53.
▲
by
whowouldathunk
9y ago
I'm pretty sure the same was said about Wal-mart before Amazon came along.
54.
▲
by
whowouldathunk
9y ago
The drivers are probably pretty complicated and thus valuable IP.
55.
▲
by
whowouldathunk
9y ago
That sounds like addiction to me. A lack of stimulation causing restlessness. Counseling and meditation help me with this, but it's on ongoing struggle.
56.
▲
by
whowouldathunk
9y ago
By "single-threaded" I meant business logic and non-fixed layout being done on the same thread. "Rendering" (drawing to a bitmap or translating to the OS compositor's object model or direct OpenGL/DirectX/
57.
▲
by
whowouldathunk
9y ago
Animating left/top on a fixed layout is indeed still fast. But modern app layouts using responsive design are still going to need to hit the UI thread to modify controls as the size changes.
58.
▲
by
whowouldathunk
9y ago
> There is absolutely no reason why browsers have to use the native compositor for CSS. Sure, but you're basically re-implementing big parts of the OS in the browser. Which is maybe not a bad idea, but at some point there's inc
59.
▲
by
whowouldathunk
9y ago
Not sure how Servo works, but what happens if a list viewport gets bigger and you need to display more list items?
60.
▲
by
whowouldathunk
9y ago
You have this problem with native Windows apps. I'm not familiar with iOS or Android. https://blogs.msdn.microsoft.com/windowsappdev/2012/05/01/fa... An independent animation is an animation that r
More ›