Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spankalee
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
91.
▲
by
spankalee
7mo ago
I find this handy in Chrome occasionally. Just confirms that BeOS had the right windowing features all along. Two more OS-level windowing features I'd like to see in browsers: - OS X like Expose that shows a preview of all tabs for a w
92.
▲
by
spankalee
7mo ago
That only works in React though.
93.
▲
by
spankalee
7mo ago
Lit is not opinionated about your build system You can write Lit components in plain JS, going back to ES2015. Our decorators aren't required - you can use the static properties block. If you think the DX is better with decorators... t
94.
▲
by
spankalee
7mo ago
I did something a lot simpler than this to have some more control: I gave a Twilio number to the building manager for the door box, then had an app where I could give out codes to people. Valid codes responded with a "9" DTMF sign
95.
▲
by
spankalee
7mo ago
HTML simply can't represent the complex state of real apps. Moving state to HTML actually means keeping the state on the server and not representing it very well on the client. That's an ok choice in some cases, but the web clearl
96.
▲
by
spankalee
7mo ago
The point of Lit is not to compete with React itself, but to build interoperable web components. If your app (Hi Beaker!) is only using one library/framework, and will only ever one one in eternity, then interoperability might not be a
97.
▲
by
spankalee
7mo ago
I do this with long blog posts, but not short tweet-like things. That feels ok some of the times as most of the micro-posts are throw-away, but sometimes I do make some posts I refer back to and would like to keep better ownership of. So I&
98.
▲
by
spankalee
7mo ago
Western governments should have been intervening like China does.
99.
▲
by
spankalee
7mo ago
I was wondering why I hadn't heard of Open UI doing anything with WASM. This new company chose a very confusing name that has been used by the Open UI W3C Community Group for over 5 years. https://open-ui.org/ Open UI
100.
▲
by
spankalee
7mo ago
Hidden class optimizations just make JavaScript objects behave a little more like Java class instances, where the VM knows where to find each field, rather than having to look it up like a map. It doesn't make JS faster than Java, it m
101.
▲
by
spankalee
7mo ago
JavaScript has the exact same issue - objects are on the heap and require allocation and pointer dereferencing. For huge collections of numbers, arrays might be better. But JS has another problem: there's no way to force a number to
102.
▲
by
spankalee
7mo ago
Avoiding Java's string footguns is an interesting problem in programming languages design. The String.format() problem is most immediately a bad compiler and bad implementation, IMO. It's not difficult to special-case literal stri
103.
▲
by
spankalee
7mo ago
Good thing no one blamed the kid.
104.
▲
by
spankalee
7mo ago
This would not be a good idea. Government "debt" expands the money supply, and if government spending gets us infrastructure and social services. The only big issue here is the interest, which we force ourselves to pay by requirin
105.
▲
by
spankalee
7mo ago
This is a good time to share this article again: Isn’t it Time to Stop Calling it “The National Debt”? - https://evonomics.com/isnt-time-stop-calling-national-debt/
106.
▲
by
spankalee
7mo ago
Popularity doesn't matter. The only thing that will remove Trump from office is Jan 20th 2029.
107.
▲
by
spankalee
7mo ago
I would actually be neat to have human-picked brackets in here too, or at least import a few expert-picked brackets from various sources for comparison. I wonder if the edge here is not going to come down to which model you choose, but whic
108.
▲
by
spankalee
7mo ago
> Genocide is the deliberate and systematic destruction—in whole or in part—of a national, ethnic, racial, or religious group, involving killing, causing serious harm, or imposing conditions to destroy them. The persons words fit the def
109.
▲
by
spankalee
7mo ago
That's not putting words into someone else mouth: What else would you even call supporting the erasure of an entire nation? If it's genocide when Israel does it to others, it must be genocide if done to Israel.
110.
▲
by
spankalee
7mo ago
Can you describe how Harris's policies there meaningfully differed from Bill Clinton's or Obama's?
111.
▲
by
spankalee
7mo ago
I have a compiler flag to switch from wtf-8 and wtf-16 so if you compiler for your host you don't have to reencode strings. That means that strings in my language hide their byte representation, don't allow indexed access, and onl
112.
▲
by
spankalee
7mo ago
Nothing is being ripped out or replaced.
113.
▲
by
spankalee
7mo ago
My god yes. I'm building a new Wasm GC-based language and I'm trying to make as small as binaries as possible to target use cases like a module-per-UI-component, and strings are the biggest hinderance to that. Both for the code si
114.
▲
by
spankalee
7mo ago
> that's why they are being automated There are many citizens, like me, begging for red light cameras so something can be done about the rash of crashes and killings from willfully reckless drivers.
115.
▲
by
spankalee
7mo ago
This is funny quote. Is the driver even disputing that they were the driver? They seem like they're just mad they got caught. Maybe they just stop running red lights?
116.
▲
by
spankalee
7mo ago
Wow, that's a huge problem with that red light camera program then. The drives that run red lights around me clearly don't care much for minor consequences. The point needs to be to identify the sociopathic drivers and get them of
117.
▲
by
spankalee
7mo ago
Subjectivity in applying the law is a huge problem, especially given how corrupt and violent police are. Red light cameras remove police from the equation for that infraction and apply the law evenly. They also scale in a way that police ju
118.
▲
by
spankalee
7mo ago
Of course, but at least there's a realistic, actually used, mechanism for replacing an administration. Impeachment in the US is a complete non-factor, so you can only wait for four years, no matter how bad things get.
119.
▲
by
spankalee
7mo ago
The US needs a parliamentary system. Trump would have been dumped already. Instead we have to wait 3 more years to end this insanity.
120.
▲
by
spankalee
7mo ago
I considered that, but it requires more pointer indirection and I'm supporting WASI as a first class target, so won't always have access to JS finalizers. I'm going with copying as simpler for now, praying that multi-byte acc
More ›