Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dmsnell
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
dmsnell
1y ago
Vapor chambers and heat pipes are exceptional at moving heat from a relatively small part of them to distribute it around the whole. This is because the heat dumps into a liquid which is concentrated at the heat source, but as soon as it ev
2.
▲
by
dmsnell
1y ago
At some point I think I read a more complete justification, but I can’t find it now. There is evidence that it came about as a byproduct of the interaction of the HTML parser and JS parsers in early browsers. In this link we can see the exp
3.
▲
by
dmsnell
1y ago
When a process crashes, its supervisor restarts it according to some policy. These specify whether to restart the sibling process in their startup order or to only restart the crashed process. But a supervisor also sets limits, like “10 res
4.
▲
by
dmsnell
1y ago
The other comment explains this, but I think it can also be viewed differently. It’s helpful to recognize that the inner script tags are not actual script tags. Yes, once entering a script element, the browser switches parsers and wants to
5.
▲
by
dmsnell
1y ago
This was my first submission, and the above comment was what I added to the text box. It wasn’t clear to me what the purpose was, but it seemed like it would want an excerpt. I only discovered after submitting that it created this comment.
6.
▲
How to safely escape JSON inside HTML SCRIPT elements
(sirre.al)
86 points
by
dmsnell
1y ago
|
46 comments
7.
▲
by
dmsnell
1y ago
Discussing why parsing HTML SCRIPT elements is so complicated, the history of why it became the way it is, and how to safely and securely embed JSON content inside of a SCRIPT element today.
8.
▲
by
dmsnell
1y ago
You understand it correctly: it doesn’t remove any value from fixup; instead it just means you can fixup to whatever and move the commit visually to where you want it — doesn’t have to be the main/trunk branch, and you can do it whenev
9.
▲
by
dmsnell
1y ago
You can interactively rebase after the fact while preserving merges even. I usually work these days on stacked branches, and instead of using —-fixup I just commit with a dumb message. git rebase -i --rebase-merges --keep-base trunk
10.
▲
by
dmsnell
1y ago
No but I think I saw that it’s a thermal pad, one with comparable thermal transfer characteristics to the high end (non-conductive) pastes.
11.
▲
by
dmsnell
1y ago
TECs are wonderful little devices with operating characteristics unlike comparable devices. They can be designed to move a specific amount of heat or to cool at some delta-T below the hot side (and due to inefficiencies the hot side can cli
12.
▲
by
dmsnell
1y ago
Several years ago I replaced the thermal paste in my MacBook Pro and I did it in two steps: first to high-end paste; and second to liquid metal. The results were impressive, and I think it’s a bit veiled how paste degradation over time impa
13.
▲
by
dmsnell
1y ago
Yes, that’s correct. All of these measures, of course, stand as a courtesy and are trivial to bypass, as ema notes. Finding cryptographic-strength measures to identify LLM-generated content is a few orders of magnitude harder than optimisti
14.
▲
by
dmsnell
1y ago
Unicode has a range of Tag Characters, created for marking regions of text as coming from another language. These were deprecated for this purpose in favor of higher level marking (such as HTML tags), but the characters still exist. They ar
15.
▲
by
dmsnell
2y ago
HyTime was Kimber’s work, and I found this reflections of his on “worse is better” to be quite refreshing, especially when contrasting the formality of SGML against the flexibility of HTML. https://drmacros-xml-rants.blogspot.com
16.
▲
by
dmsnell
2y ago
HTML didn’t make sense to me until I realized it’s built on a state machine and its rules are based on what’s on the stack of open elements. For example, a number of tags trigger a rule to close open P elements or list items, and many end t
17.
▲
by
dmsnell
2y ago
The story of XHTML is instructive to the field of software design. There are plenty of good resources on the web if you search why did XHTML fail ? HTML parsing at least is deterministic and fully specified , whereas XHTML, as an XML, l
18.
▲
by
dmsnell
2y ago
The memory test is missing some deprecated and non-conforming elements. The HTML spec doesn’t have a single comprehensive list either, so it can be a little tricky to define or name “all” of the elements. For example, there are elements lik
19.
▲
by
dmsnell
2y ago
Took me a while to process your response; thanks for providing to so much to think about. And yes, it is indeed nice meeting other SGML enthusiasts! Can’t say I’m familiar with the use of notations the way you are describing, and it doesn’t
20.
▲
by
dmsnell
2y ago
Fun fact: this is very close but slightly inaccurate. I used to think this is how it worked before scrutinizing a rule in the HTML tree-building specification. The tag leads the parser to interpret everything following it as character data
21.
▲
by
dmsnell
2y ago
I’ve become quite a fan of writing in SGML personally, because much of what you note is spot-on. Some of the points seem a bit of a stretch though. Any type-checking inside of SGML is more akin to unused-variable checking. When you say that
22.
▲
by
dmsnell
2y ago
DOM\HTMLDocument is a huge boon. Niels Dosche incorporated lexbor into PHP to do so, and it maintains the same interface as DOMDocument once it’s instantiated. In case people aren’t aware, DOMDocument is dangerous. You can’t parse HTML with
23.
▲
by
dmsnell
2y ago
Fun fact: HTML void elements came first. XML brought in "empty elements" by adopting SGML's "null end-tag" (NET), part of the SHORTTAG minimization (though it changes the syntax slightly to make it work). In SGML&#x
24.
▲
by
dmsnell
2y ago
For better or worse XHTML, also known as the XML serialization of HTML, cannot represent all valid HTML documents. HTML and XML are different languages with vastly different rules, and it's fairly moot now to consider replacing them. M
25.
▲
by
dmsnell
2y ago
> Is not valid HTML, it's merely valid grammar syntax for a loose parser. It's an incredible journey writing a spec-compliant HTML parser. One of the things that stands out from the very first steps are that the "loose par
26.
▲
by
dmsnell
3y ago
My teammate built the WordPress Playground https://playground.wordpress.net The motivation was initially to build interactive documentation where you could play with the code examples and see how they change things, but it'
27.
▲
by
dmsnell
3y ago
The Playground stores more than the SQLite database in OPFS. This includes things like installed plugins and file uploads and other artifacts brought in during boot. If there's enough interest and time I could imagine support being add
28.
▲
by
dmsnell
3y ago
I'm not entirely sure on this, but I believe that what we're seeing is the WASM runtime allocating memory for its potential needs, but not totally using it all. The entire filesystem, all the executables, all uploaded files, and a
29.
▲
by
dmsnell
3y ago
the Playground can connect to a MySQL instance when running in a Node environment. it's not supported in the browser because there's no existing mechanism to relay the necessary socket connection there.
30.
▲
by
dmsnell
4y ago
As noted above seven hours before your comment ;) the purpose for this project is for embedding interactive WordPress installations in documentation and to provide a playground in the browser for testing code or learning how to write plugin
More ›