Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
c-smile
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
88 ms
·
871.
▲
by
c-smile
9y ago
Composite operations ( https://developer.mozilla.org/en-US/docs/Web/API/CanvasRende... ) are achievable only on bitmap/frame buffers. And OpenGL's frame buffers are not famous for their perfor
872.
▲
by
c-smile
9y ago
<canvas> by its specification mandates pixel buffer to be placed in memory with per pixel access. This reduces GPU acceleration options to the ground.
873.
▲
by
c-smile
9y ago
This situation reminds me days when we, at W3C HTML5 WG, were trying to sneak SQL specification into HTML5 "umbrella". And one particular flavor of it - the SQLite's SQL as it was defined at the moment of writing. Haven'
874.
▲
by
c-smile
9y ago
With .h only files, when you need to include needed functionality, you modify only your own source file. But with .c files, when you have multiplatform project, you need to put it in other "3rd party" tools. Think about the whole
875.
▲
by
c-smile
9y ago
Not a surprise actually as AV software: 1. shall not be CPU consuming. That famous 13% CPU consumption on blinking caret ( https://github.com/Microsoft/vscode/issues/22900 ) is not acceptable. 2. shall be as c
876.
▲
by
c-smile
9y ago
Not sure I understand your concerns. If you have DirectX there then you will have the same GPU rendering. If that's about CPU rasterizers then Direct2D/WARP and Skia rasterizers are pretty good. Problem is that if you have two mon
877.
▲
by
c-smile
9y ago
Let me know if you need more tests around this. If to consider more complex DOM cases then you can try https://notes.sciter.com/ application. Or to run it from SDK directly: https://github.com/c-smile/s
878.
▲
by
c-smile
9y ago
For that particular text editor latency of char typed to appear on screen will be 16ms (normal 60 FPS refresh rate). Editor keeps each line in separate <text> DOM elements (like <p> but no margins and only text inside). So we ju
879.
▲
by
c-smile
9y ago
"Platform text rendering (CoreText, DirectWrite) not performant enough" That above needs some reliable proof to be honest. I am testing this claim with Sciter ( https://sciter.com )... On Windows Sciter uses Direct2D
880.
▲
by
c-smile
9y ago
I wouldn't say it is a stereotype, it has practical reasons - 40% mixture is the max that body can consume right away. More than that and spirit stays in blood so it just enough to drink pure water next day and you are drunk again. Tri
881.
▲
by
c-smile
9y ago
When you mix ethanol with water it gets heated up : https://pdfs.semanticscholar.org/d859/b2900e6d66cf71d79601dd... Russian saying "The worst thing after drinking hot vodka is to have sex with sweaty woman".
882.
▲
by
c-smile
9y ago
We were told about this by our lecturer in university (USSR). Discipline was "data protection / security" ("Защита данных" in Russian). The device was masqueraded as a canned "Килька черноморская в томате"
883.
▲
by
c-smile
9y ago
Quite old trick actually. At Cold War time, in USSR, American spy device was discovered that was placed on the street outside the wall of main frame computer installation nearby drum printers ( https://en.wikipedia.org/wiki&#
884.
▲
by
c-smile
9y ago
FYI: On this site adblocker reports that site tries to run CC-mining code...
885.
▲
by
c-smile
9y ago
Sometimes you just need one joke from elders, here is my story: https://www.quora.com/Are-there-any-lies-that-your-parents-t...
886.
▲
by
c-smile
9y ago
Yet another incarnation of slices in D : https://dlang.org/spec/arrays.html#slicing in a store near you this time. Yet string_view, vector_view and other range<T>'s in C++. Yet Pythonic slices. Yet Rust.
887.
▲
by
c-smile
9y ago
Can we just use IP addresses (or similar finite at time set) as coins then? And torrent alike distributed network that will support proof of ownership and transactions. Like I am owning 123.245.189.123 address and tons of peers nearby know
888.
▲
by
c-smile
9y ago
What stops you from declaring table { display:block; } etc. if you need to transform your table into vertical flow layout?
889.
▲
by
c-smile
9y ago
"flex-shrink defines if the element is allowed to shrink" Rhetorical question: Shrink from what? From defined flex-base or from defined width? What is the behavior when they are different? "you can always stick a wrapper div
890.
▲
by
c-smile
9y ago
Exactly. 10 years we were told how dangerous are tables. In the same 10 years ( http://www.w3.org/TR/css-flexbox-1/ ) we were trying to come up with something that can be used instead. And have got that ugly flexbox
891.
▲
by
c-smile
9y ago
"Flexbox works kinda like this as far as i know:" That's the thing - nobody knows exactly how it works. Except few developers who actually tried to implement the spec. Nobody knows why do we need separate flex-shrink and
892.
▲
by
c-smile
9y ago
Windows: pixels are pixels. Some systems there (e.g. WPF) use also dip units (Device Independent Pixel, 1/96in == 1px in twisted CSS terms). And that's how it should be done in CSS form the very beginning. MacOS/iOS uses scre
893.
▲
by
c-smile
9y ago
1. What if I need to print some form and 100mm box shall be precisely of that size on paper. How would your default-font-relative-length-system work? 2. What if I have touch screen and need to make that button to be clickable by a finger? L
894.
▲
by
c-smile
9y ago
What is written in CSS specification may work only if CSS has any means to measure distance of observer from display surface. Like @media distance(1m) {} Otherwise it is just a good wish like "hope you have normal eyesight". The o
895.
▲
by
c-smile
9y ago
<heretic-mode> Just use <table> - the best possible Grid layout module out there. Works in all browsers, even IE6. </heretic-mode>
896.
▲
by
c-smile
9y ago
If to speak about layout methods @supports will not help you but will force you to do the job twice. If you can do your layout without flex boxes why do you need to create second version with them at all?
897.
▲
by
c-smile
9y ago
Check screenshots above. There is a block having 4-columns layout. Each column there a) is flexible and b) uses min-content constraint. So widths of columns are unknown upfront - determined by actual content in grid cells. That last part (
898.
▲
by
c-smile
9y ago
Bulma, as any other grid systems based on % units, is quite limited in real life. Check this: https://sciter.com/images/wt-langs.png You see the same HTML markup there but in different languages. Text in most of Europe
899.
▲
by
c-smile
9y ago
Close but without those artificial DOM elements. Here is an illustration of the idea of flex units : https://sciter.com/docs/flex-flow/images/flex-springs.png
900.
▲
by
c-smile
9y ago
Yes but flex units can be used not just in grid context. Consider this: <p>Foo <input style="width:1fr /> bar.</p> That <input> will span free space left in the p element from "Foo &qu
More ›