porphyry3
Re:Booting Modern Intel CPUs
on Monday April 17, 2023 @05:18AM (#35598417)
> ...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).
Show HN: Generate a mindmap from an org-mode file, with annotations
Show HN: Teasy – A tiny tool to make teaching easier
Show HN: Teaching IoT Using a Cheap STM32 Nucleo
Show HN: Convert markdown tables to json
Show HN: Create Submission Links to Reddit and HN from the CLI
Show HN: Dom-restyle: Restyle parts of a webpage with shadow dom
XMetrics: Activity Tracker for Swimmers
Show HN: Unsplash-svc – Update periodically your OS X wallpaper from Unsplash
DIY – An embedded DSL that compiles to a Makefile
Show HN: DIY – JavaScript that compiles to a Makefile
Show HN: Rn – a handy file renaming tool
Show HN: Header-only debug module for c++11
Show HN: Markdown codeblocks preprocessor
Show HN: Sweet Angle – Write AngularJS directives with ease
Efficient DSP filters with Template Haskell
Implementing a simple DSP filter library with Template Haskell
Towards template programming with Haskell – A small tutorial
Re:Managing Node.js Callback Hell with Promises, Generators and Other ...
on Tuesday February 04, 2014 @03:34PM (#7180074)
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