Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bfgeek
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
bfgeek
18d ago
The issue that open source projects are facing at the moment is that it takes significantly less effort to submit a patch for review. A lot of developers who are submitting these AI patches don't necessarily understand the patch, so th
2.
▲
by
bfgeek
6mo ago
One has to wonder if this due to the global memory shortage. ("Oh - changing our memory allocator to be more efficient will yield $XXM dollar savings over the next year").
3.
▲
by
bfgeek
8mo ago
HTML parsing supports some of this, e.g: text <b>bold <i>bold-italic</b> italic</i>
4.
▲
by
bfgeek
9mo ago
We found it was roughly on par performance wise for simple text (latin), and faster for more complex scripts (thai, hindi, etc). It also is more correct when there is kerning across spaces, hyphenation, etc. For the word-by-word approach to
5.
▲
by
bfgeek
9mo ago
Blink's (Chromium) text layout engine works the following way. 1. Layout the entire paragraph of text as a single line. 2. If this doesn't fit into the available width, bisect to the nearest line-break opportunity which might fit.
6.
▲
by
bfgeek
9mo ago
You can exploit flexbox for this type of layout: https://bfgeek.com/flexbox-image-gallery/
7.
▲
by
bfgeek
11mo ago
> "At this point, the engineers in Australia decided that a brute-force approach to their safe problem was warranted and applied a power drill to the task. An hour later, the safe was open—but even the newly retrieved cards triggere
8.
▲
by
bfgeek
1y ago
One thing to keep in mind when developing these large lists of fonts is that they are generally terrible for performance if the appropriate glyphs for what you are trying to display aren't present in the first font (and the font is ava
9.
▲
by
bfgeek
1y ago
> which are more powerful and is out-of-spec These are in the specification here: https://drafts.fxtf.org/filter-effects-1/#typedef-filter-url And used by backdrop-filter here: https://drafts.fxtf.org
10.
▲
by
bfgeek
1y ago
My biggest pet peeve is designers using high end apple displays. You've average consumer is using a ultra cheap LCD panel that has no where near the contrast ratio that you are designing your mocks on, all of your subtle tints get satu
11.
▲
by
bfgeek
1y ago
This likely more effective quite a few years ago, but not particularly important today. Changing height typically only shifts elements, and browser engines typically wont relayout them due to position changes. "overflow: clip" is
12.
▲
by
bfgeek
1y ago
Part of the design constraint here is to reuse the existing properties that exist for multi-column layout which have existed for a long time - https://developer.mozilla.org/en-US/docs/Web/CSS/column-rule
13.
▲
by
bfgeek
2y ago
Yeah - this was arguably mostly my fault (sorry!). There's quite a bit of history here, but the abbreviated version is that the dialog element was originally added as a replacement for window.alert(), and there were a libraries polyfil
14.
▲
by
bfgeek
2y ago
The point I was after to make is that you can't assume that road wear scales the same way as tyre wear (I was assuming same material fwiw, just different loads). They are being worn under very different modes/scenarios.
15.
▲
by
bfgeek
2y ago
> I think as a starting point, I would expect that tire wear should remain roughly in proportion to road wear IMO this would be a suspect assumption to make w/o data to back it up. You've got two dissimilar materials interactin
16.
▲
by
bfgeek
2y ago
To add to this, (from what I remember reading the study at the time) it was basically racing a car around a track (think lots of tyre squealing around corners), and found that the tyre wear was very high. I haven't seen a study which a
17.
▲
by
bfgeek
2y ago
You can create a new thread via. `new Worker` but using a worker requires a separate file, and lots of serialisation code as you communicate via `postMessage`. TC39 module expressions helps but not a lot of movement recently. https:/&
18.
▲
by
bfgeek
2y ago
A fun simple gear related concept is "hunting tooth". https://en.wikipedia.org/wiki/Gear_train#Hunting_and_non-hun... Basically you don't want any common denominators in teeth count, otherwise the same s
19.
▲
by
bfgeek
2y ago
It depends on the project, but most large scale projects require test(s) for the fix, and will block submission unless its provided. These types of projects undergo constant code-change/refactoring/re-architecture etc. If you don&
20.
▲
by
bfgeek
2y ago
These names come from the html spec: https://html.spec.whatwg.org/#workerglobalscope https://html.spec.whatwg.org/#workletglobalscope Chromium (and most other browser engines) will use the specification nam
21.
▲
by
bfgeek
2y ago
If you have something like: columns: 1fr auto max-content <!-- items --> <div>1</div> <div>somethingsuperlong</div> <div style="span: 2;">something else</div>
22.
▲
by
bfgeek
2y ago
The requires it for sizing the columns (the step before placing the items into the columns).
23.
▲
by
bfgeek
2y ago
Part of the tension with building masonry on top of grid is that they work in fundamentally different ways. Grid you place everything in the grid first (e.g. an item goes in col:2,row:3), then size the grid. Masonry ideally you want to size
24.
▲
by
bfgeek
3y ago
> Are you referring to access through a raw pointer after ownership has been dropped and then garbage collection is non deterministic? No - basically objects sometimes have some state of when they are "destroyed", e.g. an Eleme
25.
▲
by
bfgeek
3y ago
Oilpan can theoretically be used as a library as well - see: https://v8.dev/blog/oilpan-library https://v8.dev/blog/tags/cppgc https://chromium.googlesource.com/v8/v8.gi
26.
▲
by
bfgeek
3y ago
> the UAF-ish bugs are still bugs, and code poking at a GC-preserved object that the rest of the code doesn't really expect to still be alive might itself be pretty fraugh For the LayoutObject heirarchy - the team doing that convers
27.
▲
by
bfgeek
3y ago
One interesting thing which folks might not be aware of - most objects in Blink (Chromium rendering engine) are GC'd: https://v8.dev/blog/high-performance-cpp-gc This is in part due to lots of objects having stron
28.
▲
by
bfgeek
3y ago
Additionally this property disables the "compressibility" hack which browsers invoke currently. (jsfiddle for previous example: https://jsfiddle.net/vk8fy1bz/ )
29.
▲
by
bfgeek
3y ago
Suggestions for better names are welcome! Typically values with multiple words (e.g. grow-with-content) are rarely used. This property will affect form-control elements <textarea> , <input> , <select> etc. Hence "form
30.
▲
by
bfgeek
3y ago
Its not the same thing. min-content/max-content/fit-content etc for these form control elements are some magical value (for textareas "1lh * attr(rows)") for example. (This works cross browser!) min-content/etc get
More ›