Better HN
topnewbestaskshowjobs
Log inSign up

porphyry3

32 karma · joined Apr 8, 2013 (13y ago) · 26 submissions

Submissions

comment 3y ago · link · parent

> ...reprograms the CPU into a sensible mode (ie, one without all this segmentation bullshit)...

Protected mode still has segmentation except that segment registers now index into either a global or local descriptor table (DT). Linux tries to make this transparent by setting up descriptors where logical addresses coincide with linear addresses (at least for CS and DS).

2.

What I whish I knew.. Haskell and dependent pairs(vittoriozaccaria.net ↗)

1 points · by porphyry3 · 8y ago · discuss

3.

Show HN: Generate a mindmap from an org-mode file, with annotations(github.com ↗)

34 points · by porphyry3 · 10y ago · 1 comment

4.

Show HN: Teasy – A tiny tool to make teaching easier(github.com ↗)

2 points · by porphyry3 · 10y ago · discuss

5.

Show HN: Teaching IoT Using a Cheap STM32 Nucleo(vittoriozaccaria.net ↗)

3 points · by porphyry3 · 11y ago · discuss

6.

Show HN: Convert markdown tables to json(github.com ↗)

2 points · by porphyry3 · 11y ago · discuss

7.

Show HN: Create Submission Links to Reddit and HN from the CLI(npmjs.com ↗)

1 points · by porphyry3 · 11y ago · discuss

8.

Show HN: Dom-restyle: Restyle parts of a webpage with shadow dom(github.com ↗)

2 points · by porphyry3 · 11y ago · discuss

9.

XMetrics: Activity Tracker for Swimmers(xmetrics.it ↗)

2 points · by porphyry3 · 11y ago · discuss

10.

Show HN: Unsplash-svc – Update periodically your OS X wallpaper from Unsplash(npmjs.com ↗)

2 points · by porphyry3 · 11y ago · discuss

11.

DIY – An embedded DSL that compiles to a Makefile(vittoriozaccaria.net ↗)

1 points · by porphyry3 · 11y ago · discuss

12.

Show HN: DIY – JavaScript that compiles to a Makefile(github.com ↗)

2 points · by porphyry3 · 11y ago · discuss

13.

Show HN: Rn – a handy file renaming tool(npmjs.com ↗)

1 points · by porphyry3 · 11y ago · discuss

14.

Show HN: Header-only debug module for c++11(github.com ↗)

13 points · by porphyry3 · 11y ago · 7 comments

15.

Show HN: Markdown codeblocks preprocessor(vittoriozaccaria.net ↗)

2 points · by porphyry3 · 12y ago · discuss

16.

Show HN: Sweet Angle – Write AngularJS directives with ease(vittoriozaccaria.net ↗)

1 points · by porphyry3 · 12y ago · discuss

17.

Efficient DSP filters with Template Haskell(vittoriozaccaria.net ↗)

2 points · by porphyry3 · 12y ago · discuss

18.

Implementing a simple DSP filter library with Template Haskell(vittoriozaccaria.net ↗)

1 points · by porphyry3 · 12y ago · discuss

19.

Towards template programming with Haskell – A small tutorial (vittoriozaccaria.net ↗)

2 points · by porphyry3 · 12y ago · 1 comment

comment 12y ago · link · parent

There is another nice feature of ES6 that helps a lot with callbacks and promises: proxies. Check out this article I wrote on Flippin Awesome (http://flippinawesome.org/2013/11/18/taming-asynchronous-jav...). The following is some sample code to show how code can be simplified with ES6 proxies, making async functions chainable (example in coffeescript):

    getUser = (user) ->
        _("https://npmjs.org/~#{user}")
          .get()
          .extractLinks()
          .filter( -> /package/.test(arguments[0]) )
          .map( -> "https://npmjs.org#{arguments[0]}" )
          .log()
    
    getUser("foo")
where `get` is THE jQuery get for Ajax requests returning a promise and is chained with the rest of the functions in a pipeline fashion. I've found that these techniques can work very well for form validation, as [you can check here](http://www.vittoriozaccaria.net/chained/demo.html) — Firefox required.

Edit: I wrote in markdown but it seems that only verbatim is supported. Edit2: some clarification

21.

Show HN: Chained — taming promises with Harmony(vittoriozaccaria.net ↗)

2 points · by porphyry3 · 13y ago · discuss

22.

Show HN: A dumb easy model (javascript) for promises(vittoriozaccaria.net ↗)

1 points · by porphyry3 · 13y ago · discuss

23.

ShowHN: wmake - generate a makefile for your webapps(vittoriozaccaria.net ↗)

1 points · by porphyry3 · 13y ago · discuss

24.

Show HN: Meet fluent-fsm(vittoriozaccaria.net ↗)

1 points · by porphyry3 · 13y ago · discuss

25.

Building and provisioning an Ubuntu 12.04 VM with Vagrant and VirtualBox 4.0.6(vittoriozaccaria.net ↗)

3 points · by porphyry3 · 13y ago · discuss

26.

Fsmexpress - Write, Run and Debug Finite State Machines(npmjs.org ↗)

2 points · by porphyry3 · 13y ago · discuss