Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

WebAssembly

Name: Anonymous 2015-06-20 4:58

http://arstechnica.com/information-technology/2015/06/the-web-is-getting-its-bytecode-webassembly/
JavaScript does have certain important advantages: it's a memory safe, sandboxed environment, meaning that (browser bugs excepted) JavaScript programs can't escape beyond the confines of the browser to access sensitive data or install persistent malware.
this is what plebs actually believe

Name: Anonymous 2015-06-20 8:52

thinking better learn some ASM then... found this link of hackernews the other day:

https://zarkzork.com/servasm.html

Minimal x86_64 Linux-only file webserver written in assembly language. This page is literate program with all service source code.

...

We build response headers on stack. That means that we need to push strings from last one, for example to build header:

HTTP/1.0 200 OK\r\n
Server: servasm\r\n
Content-type: text/html; charset=UTF-8\r\n
Content-Length: 42\r\n


We will push \n\r24 :htgneL-tnetnoC\n\r8-FTU=tesrahc.... To make this easy we keep pointers to the end of string instead of beggining and use 0x00 byte to mark begining of the string.

We use stack to build headers. string, so all headers are pushed from last character to the first one.

da fuck .. is this what ASM programmers do for a living? i'll just keep programming golang and javascript kthxbai

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List