Better HN
topnewbestaskshowjobs
Log inSign up

FrancisStokes

215 karma · joined Jul 21, 2017 (9y ago) · 38 submissions

Submissions

1.

Implementing a Call Stack in a 16-Bit Virtual Machine Written in JavaScript(youtube.com ↗)

2 points · by FrancisStokes · 7y ago · discuss

2.

Implementing IEEE-754 Floats in Pure JavaScript(youtube.com ↗)

1 points · by FrancisStokes · 7y ago · discuss

3.

Building a Language Parser and Interpreter in 75 Lines of JavaScript(youtube.com ↗)

5 points · by FrancisStokes · 7y ago · discuss

4.

Using Functional Magic to Parse Non-Context-Free Grammars(youtube.com ↗)

3 points · by FrancisStokes · 7y ago · discuss

5.

Contextual Parsing with Combinators and Functional Programming Magic(youtube.com ↗)

3 points · by FrancisStokes · 7y ago · discuss

6.

Show HN: Low Level JavaScript, A channel building low level stuff from scratch(youtube.com ↗)

2 points · by FrancisStokes · 7y ago · discuss

7.

I've started a YouTube channel where I build low level systems in JavaScript(youtube.com ↗)

3 points · by FrancisStokes · 7y ago · discuss

8.

How Parser Combinators Work(youtube.com ↗)

4 points · by FrancisStokes · 7y ago · discuss

comment 7y ago · link · parent

Reading these old Linus exchanges always has me in two minds. On the one hand, it's great to peer into the mind of a genius and see the thought process, but on the other - and in light of his stepping back after recognising his own highly unprofessional behaviour over the years - I wonder if we should repost and idolise these emails.

Are people - especially young and impressionable developers - able to separate the two sides of the coin, or does it serve to plant a seed of normalisation for this kind of communication?

10.

A better approach to Web Sockets in node(itnext.io ↗)

4 points · by FrancisStokes · 7y ago · discuss

11.

Building Structured Websocket Back Ends Is Hard. Here's an Easier Way to Do It(itnext.io ↗)

3 points · by FrancisStokes · 7y ago · discuss

12.

Build Structured WebSocket Back Ends in Node with Hexnut(medium.com ↗)

6 points · by FrancisStokes · 7y ago · discuss

comment 7y ago · link · parent

I'm guessing you haven't seen the new data types?

- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

comment 7y ago · link · parent

construct-js uses DataView under the hood. I wrote construct-js to ease working with binary data by allowing you to name and reference sections, and handle things like endianess easily in one place. With a DataView, I still need to calculate offsets into a structure manually, whereas construct-js has .getOffset(name) and .getDeepOffset(path). If performance is key however, use the lowest level of course.

comment 7y ago · link · parent

Map wouldn't have really brought a lot of clarity or control. You'd have to specify an array of array-pairs, which is noisy IMO, and then you wouldn't have the benefit of being able to programatically/conditionally add fields.

I might consider a static `Struct.fromMap(name, mapObject)`, but as a complimentary API.

comment 7y ago · link · parent

Really well put!

comment 7y ago · link · parent

Thanks! When it comes to performance I can understand choosing a more low level approach. construct-js trades performance for declarativeness (though I suspsect that I can do a lot of optimising under the hood).

As for DEFLATE, I'm working on an automatic bit level structure at the moment which would allow for unaligned structures. Should be in the lib in a couple of days.

comment 7y ago · link · parent

Thanks!

19.

Construct-JS – A library for creating byte level data structures(github.com ↗)

163 points · by FrancisStokes · 7y ago · 50 comments

20.

Exploring the Peano Axioms Through Algebraic Data Types(francisrstokes.github.io ↗)

34 points · by FrancisStokes · 7y ago · 9 comments

21.

Infinite Data Structures in JavaScript(medium.com ↗)

3 points · by FrancisStokes · 7y ago · discuss

22.

Parsing in almost-natural language(hackernoon.com ↗)

5 points · by FrancisStokes · 7y ago · discuss

23.

Arcsecond: A JavaScript Parser-Combinator Library Based on Haskell's Parsec(medium.com ↗)

4 points · by FrancisStokes · 7y ago · discuss

24.

Redux Without Redux: Sharing State and One Way Data Flow Using Only React(gist.github.com ↗)

2 points · by FrancisStokes · 8y ago · discuss

25.

Upgrade your React UI with state machines(reddit.com ↗)

3 points · by FrancisStokes · 8y ago · discuss

26.

More functional: A story in refactoring a 2d vector library(medium.com ↗)

1 points · by FrancisStokes · 8y ago · discuss

27.

Getting a stronger grasp on functional programming concepts through JavaScript(hackernoon.com ↗)

2 points · by FrancisStokes · 8y ago · discuss

28.

Making Functional Programming Click(medium.com ↗)

2 points · by FrancisStokes · 8y ago · discuss

29.

Techniques for creative coding(medium.com ↗)

2 points · by FrancisStokes · 9y ago · discuss

12