Better HN
topnewbestaskshowjobs
Log inSign up

panic

29,749 karma · joined Sep 16, 2009 (17y ago) · 3,593 submissions

Submissions

comment 7y ago · link · parent

Resetting the interval when the delay changes is probably not what you want either -- quickly changing the delay (even a little bit) won't give the timer a chance to fire. It would be better to compute a deadline internally, then move the deadline forward or backward according to how much the delay changed since the last call.

1082.

WebAssembly Troubles Part 1: WebAssembly Is Not a Stack Machine(troubles.md ↗)

175 points · by panic · 7y ago · 59 comments

comment 7y ago · link · parent

Native UI systems tend to support more complex event dispatch, which often involves cross-component communication -- look at drag and drop, for example, or the complex exclusion behavior of gesture recognizers on iOS. Carrying an interactive gesture through to an animation while preserving velocity is also difficult to do using the DOM.

comment 7y ago · link · parent

On the contrary, humans are great at interpreting large amounts of visual data. That's how we can drive without needing lidar in the first place.

1085.

The E Language in a Walnut (2000)(skyhunter.com ↗)

1 points · by panic · 7y ago · discuss

comment 7y ago · link · parent

Seeing what’s happening all around you in a single glance could improve safety in a similar way as it does for self driving cars.

comment 7y ago · link · parent

I'm looking forward to lidar in human-driven cars. Imagine how cool it would be to see the 3D point cloud on your dashboard or reflected on your windshield as a heads-up display.

comment 7y ago · link · parent

> I also combed through the outputs to see what sorts of inputs were succeeding, what was failing, and observe how my program handled various edge cases. It was rejecting some inputs I thought should be valid, accepting some I thought should be invalid, and interpreting some in ways I hadn’t intended. So even after I fixed the crashing inputs, I still made tweaks to the parser to fix each of these troublesome inputs.

I love just looking through the absurd stuff AFL comes up with, even if it's not causing a crash or incorrect behavior. Like this bit of art it caused my parser generator to produce: https://i.imgur.com/VoV7cU9.png

comment 7y ago · link · parent

It's not just you. Treating the web like a native UI framework, where you can set pixel positions directly to get the perfect layout, isn't going to work. The trick to using CSS effectively is to give up on achieving whatever design goal you have. Instead, you should settle for what CSS actually lets you do. Don't try to align text to the pixel; change your design so it doesn't require precise alignment. Ideally your designers should also work in CSS so they can understand why nothing looks exactly like the images they produce.

1090.

Building a “Simple” Distributed System – Formal Verification(jack-vanlightly.com ↗)

3 points · by panic · 7y ago · discuss

comment 7y ago · link · parent

REST doesn't really have anything to do with the HTTP methods you use. It's about handing off state between the client and server using stateless requests instead of maintaining a persistent, stateful session. This blog post is a good overview: https://programmingisterrible.com/post/181841346708/what-the...

1092.

Extending Interactivity(technicshistory.wordpress.com ↗)

2 points · by panic · 7y ago · discuss

1093.

Use of Formal Methods at Amazon Web Services (2014) [pdf](lamport.azurewebsites.net ↗)

2 points · by panic · 7y ago · discuss

comment 7y ago · link · parent

The original runs great on a Raspberry Pi using VICE. I recommend this version: https://csdb.dk/release/?id=101455 which lets you play with 4 joysticks instead of having to share a keyboard.

comment 7y ago · link · parent

Discussed in 2015 (the code was out of date even then): https://news.ycombinator.com/item?id=9025572

1096.

“Computer” Mouse: A DIY Project(youtube.com ↗)

2 points · by panic · 7y ago · discuss

comment 7y ago · link · parent

Every blog I've tried to follow for years has had an RSS feed. Are microformats really as reliable? Like, picking a blog at random from my feed, I don't see any microdata on the page.

1098.

Sense and nonsense (2000)(prospectmagazine.co.uk ↗)

1 points · by panic · 7y ago · discuss

comment 7y ago · link · parent

The follow-up article goes into detail about some of the differences: https://codea.io/blog/detailing-the-ios-menu/

1100.

The Case Against Geniuses(nautil.us ↗)

3 points · by panic · 7y ago · discuss

1101.

The Vimes Boots Theory: Further Reflections(siderea.dreamwidth.org ↗)

60 points · by panic · 7y ago · 34 comments

1102.

The Txl Programming Language: Source Transformation by Example(txl.ca ↗)

1 points · by panic · 7y ago · discuss

comment 7y ago · link · parent

What makes Wikipedia an authoritative source here?
1
363738
120