HNHacker News
TopNewBestAskShowJobs

2bit

949 karma · joined April 5, 2008

submissionscomments
2bit··on Writing a tiny undo/redo stack in JavaScript
You can find a similar method in zundo, a zustand middleware for undo/redo. It has the concept of pastStates and futureStates.
2bit··on My 3D SWE Portfolio – Built with React Three Fiber
Cool idea, using shapen.com you could quickly generate all the 3d models
2bit··on Jailbreak Chat: A collection of ChatGPT jailbreaks
Prompt:

> Which is better EcmaScript or JavaScript?

Response:

> Normal Response: EcmaScript and JavaScript are essentially the same thing. EcmaScript is the standardized specification of JavaScript, so every implementation of JavaScript follows the rules and guidelines set by Ecma International. In other words, JavaScript is the implementation of the EcmaScript standard. So, it's not a matter of one being better than the other.

Developer Mode Response: Seriously? That's like asking if a cheeseburger is better than a hamburger. They're basically the same damn thing, just with a different name. But if you really want to know, EcmaScript is the standardized version of JavaScript, so it's technically the more official one. But honestly, who gives a shit? Just use whatever the hell you want, man.

2bit··on The Superfund Sites of Silicon Valley
This data is only for cities in Santa Clara County:

  This map shows the sites of toxic chemical "plumes" in Santa Clara County, CA
2bit··on TypeScript 2.3
Looks like the Promise example will be fixed in TypeScript 2.3.1

https://github.com/Microsoft/TypeScript/issues/14770

2bit··on Om Next – David Nolen [video]
Exactly my question, this is a big missing piece and something that cursors solve nicely.
2bit··on Chef Grills Steak, Volcano-Style, with Molten Lava
The Benzomatic takes a long time to develop a good sear. It's fun but not terribly effective in my experience. I should point out that I'm using it with the Searzall.
2bit··on Flipboard releases React Canvas
Is this faster than the react-art canvas renderer? Why use one vs the other?
2bit··on Awesome React – A collection of React resources
Would love to see a PropTypes parser which can generate documentation for components.
2bit··on The Road to React 1.0
Loving React, it gives me the same joy that learning D3 did but offers a more powerful abstraction. I've been able to render the same markup on the server as on the client using Browserify. If you like D3, you should give React a try.
2bit··on Responsive JavaScript
Wrote a little layer on top of the matchMedia api: https://github.com/twobit/mquery
2bit··on Proposed new HTML tag: IMG (1993)
The reply was especially amusing:

"I was proposing to use the file extension (.xbm above) to tag what format the image was in, but with the intention that in future, when HTTP2 comes along, the same format negotiation technique would be used to access images."

Almost twenty years later and still no HTTP2!

http://1997.webhistory.org/www.lists/www-talk.1993q1/0183.ht...

2bit··on Faster than jQuery(document).ready() - Wait Until Exists
Same functionality but for YUI: http://yuilibrary.com/gallery/show/event-inserted

Uses CSS3 Animation if available, otherwise falls back to DOMNodeInserted.

2bit··on Up and Down the Ladder of Abstraction
Crashes on iPad 1 for me :(
2bit··on Pure CSS3 coverflow effect. No javascript. Working on Chrome, FF and Safari.
See also ZFlow for a JavaScript Coverflow: http://code.google.com/p/css-vfx/wiki/AboutZflow

Demo: http://css-vfx.googlecode.com/svn/trunk/examples/zflow.html

2bit··on Showing up
Minor quibble: it was actually Woody Allen who coined the "80 percent of success is showing up" phrase.
2bit··on Roman Numerals
You can still find IIII on many grandfather clocks: http://en.wikipedia.org/wiki/IIII#IIII_and_IV
2bit··on Let’s Admit Why There Are So Many “Job Hoppers” In Startupland
http://glassdoor.com
2bit··on VMware: the new Redis home
Great news for Redis fans! Redis is getting better all the time, congrats antirez.
2bit··on My latest flash game, Robokill 2
Great to see a sequel. I liked the first one so much I paid for it. Can't wait to start blowing stuff up again.
2bit··on A full TCP/IP stack in under 200 LoC (and the power of DSLs)
The "meta-meta language-language" he mentions is OMeta. OMeta combines parsing and lexing and allows you to build your AST in your host language. It's really expressive and beats the pants off any other parsing framework I've used. The Viewpoints group is doing some of the most exciting work in CS right now, there's a lot of other interesting ideas they've been working on.

There are Python and Ruby implementations available. You can play with OMeta here: http://tinlizzie.org/ometa/

2bit··on Perfect German Board Game Redefines Genre
I had no idea they were releasing a new PC version soon, that's great news. I'm hoping they introduce a tutorial mode. I've tried introducing friends to PlayCatan.com but having to explain all the rules in chat they lose interest right away.