[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Node.js for Embedded Systems

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 77
Thread images: 16

File: Node.js_for_ES.jpg (672KB, 1951x2560px) Image search: [Google]
Node.js_for_ES.jpg
672KB, 1951x2560px
This is an actual book.

There is no God.

http://shop.oreilly.com/product/0636920041504.do
>>
>>57128867
Kek. Thanks for showing me this.
>>
>>57128867
Assembly for web development when?
>>
>>57128903

They're working on it:

https://github.com/webassembly/
>>
>>57128867
what's the problem here?
>>
>>57128867
jesus fucking christ... in what world would anyone use something as slow and complex as node.js for *embedded*?!
>>
>>57128867
nice
node.js is pretty sick nasty.

glad to see you embedded dipshits have a decent language to work with now.
>>
>>57129029
JavaScript can be synthesized (that's "compiled" you nigger) to effective bytecode.

Read more about asm.js
>>
>>57128867
>Building web interfaces for connected devices
So what's wrong with this? Do you do your web development in C?
>>
File: ZQlM9GO.jpg (65KB, 1024x684px) Image search: [Google]
ZQlM9GO.jpg
65KB, 1024x684px
>>57128867
>nodejs
>dogshit slow compared to literally anything except ruby on cancer
>lets use this on 8-600 mhz embedded devices
i dont even
>>
>>57128969

Javascript is quite a clunky language, and its explosion lately has lead to this ecosystem where things are rapidly developed yet poorly maintained.

Memory wise it probably uses more than other things too.

Essentially embedded systems are ideally rock solid, and lean, the current JS landscape is arguably neither.
>>
>>57128908
Next be Coding drunk please
>>
>>57128969
In embedded systems direct memory access is mandatory.
>>
>>57128908
I think he meant this https://2ton.com.au/rwasa/
>>
>>57128867
How?
>>
File: Big Show Doubting.jpg (64KB, 640x640px) Image search: [Google]
Big Show Doubting.jpg
64KB, 640x640px
>>57128867
>>57128908
I dunno about this
Why is this even happening
>>
>>57128867
>http://shop.oreilly.com/product/0636920041504.do

f u c k

t h i s

s h i t

i m

o u t ...
>>
What's its compability with RTOS?
>>
File: 1442478528713.jpg (7KB, 201x204px) Image search: [Google]
1442478528713.jpg
7KB, 201x204px
>>57129049
>VHDL
>Verilog
>C
>Ada
>Assembly
>Literally anything thats not a pile of manure
>>
is Javascript the new LISP Machine?
>>
>>57129066
good luck trying to crowbar any autist here out of the 70s
>>
>>57129049
it`s cool, but these fags will still be angry because it`s slow one
embedded systems which will just connect to a server when
>>
>>57130888
Fuckin' checked and this.

Your average /g/oober knows dick and balls about the underlying issues of modern programming. We're on the verge of having a universal language from top to bottom and everyone is still meme'ing about muh C.

Newsflash niggers: It's 2016, by this time next year JS is going to be literally everywhere and it won't stop until your poor autism language is wiped out. All you faggots laughing at us "webfags," for being too invested in JS can get fucked. We're the master race now.
>>
File: jeff maGNUm.jpg (9KB, 214x235px) Image search: [Google]
jeff maGNUm.jpg
9KB, 214x235px
>>57131299
preach young nigga PREACH
>>
good thing /g/ autists arent in charge of how the real world works.

javascript is good and you should kys.
>>
File: 0982034905234.jpg (42KB, 1280x720px) Image search: [Google]
0982034905234.jpg
42KB, 1280x720px
>>57131299
>>57131299
>>57130888
>>57129066
>You hear that Stephen? The Webniggers are telling us they're going to run the plantation now.
>>
>dynamic typing bullshit
>anywhere near hardware
Wew lad
>>
>node.js is slow meme
Look up recent benchmarks and tell me it's a slow interpreted language.

I'd still prefer to work with C on embedded, but don't spout false memes. Thank you.
>>
File: 93453452124.jpg (216KB, 720x340px) Image search: [Google]
93453452124.jpg
216KB, 720x340px
>>57131299
>by this time next year JS is going to be literally everywhere
>>
>>57131299
Good luck running your Javascript OS then
>>
>>57131744
https://github.com/charliesome/jsos
:^)
>>
File: 1468968023136.png (529KB, 1015x1527px) Image search: [Google]
1468968023136.png
529KB, 1015x1527px
>>57131299
C and X86 assembly will conquer the earth Inshallah. /g/hadis unite!
>>
File: 8A4lF4p.png (79KB, 506x662px) Image search: [Google]
8A4lF4p.png
79KB, 506x662px
Pic related when?
>>
>>
>>57131809
In 10 years it'll be normal.
>>
>>57128867
I hope that's for small headless servers for some IoT shit that then get gangraped by DDoS botnet malware.
>>
>>57131809
>>57131817
hivemind
>>
>>57131863
More like redditmind
>>
well I don`t see this as a surprise at all.. It will crash and burn in a couple years probably thogh
>>
>>57131770
>An OS that needs another OS
>>
File: flat,800x800,075,f.u1.jpg (79KB, 681x800px) Image search: [Google]
flat,800x800,075,f.u1.jpg
79KB, 681x800px
>>57131299
>the universal language will be JS/TS and not Python2

Time to end my life
>>
>>57130613
>Ada
Have you ever used it, anon?
>>
>>57131299
It's am even worse idea than

> Java runs on three billion devices
>>
>>57131299
>Literally the Current Year Man argument
I'm all for a "universal language", too bad it ain't going to be Javascript.

This goddamn CS meme bubble can't pop fast enough
>>
>>57131342
>JS on 8mhz microcontrollers

Kill yourself
>>
>>57128903
Done: http://board.asm32.info/
>>
>>57132196
There was BASIC on weaker devices.
>>
>>57132396
JS can make Pentium 4s lag whereas BASIC can run well on very old and weak hardware. Notice something?
>>
>>57132396
>https://2ton.com.au/rwasa/
And it was terrible. See https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)#BASIC
>>
>>57129489
Node can use C++ add-on modules. I suppose that's how it could have direct access to memory.
>>
>>57132664
Doesn't that defeat the point of a pure JS OS?
>>
File: image.png (12KB, 423x349px) Image search: [Google]
image.png
12KB, 423x349px
>>57132112
yes and i still do for various stuff
>>
File: CJGjEPg.png (9KB, 1005x100px) Image search: [Google]
CJGjEPg.png
9KB, 1005x100px
>>57131770
>>
>>57131549
That.

>>57131299
b8/8
>>
>>57132803
Oh well, I waited for you
How is Ada?
Is it hard?
Is it fast?
How much does it restrict a programmer?
>>
File: Untitled.png (12KB, 411x461px) Image search: [Google]
Untitled.png
12KB, 411x461px
>>57132960
>How is Ada?
It's nice if you like to follow structure, a specific way of coding and restrictions in terms of how you do things. If you like to follow a certain structure of coding, and a certain way to handle pointers, tasks (thread equivalent), whatever, its fantastic.

>Is it hard?
Not necessarily harder than any other language really, its a functional language rather than object oriented, but it gives the same results basically.

>Is it fast?
Yes, but not quite as fast as C in most cases, its much more stable though.

>How much does it restrict a programmer?
Very much.

It's also the basis on which VHDL (pic related) was developed which, when in Europe, is nice because its the standard for stuff like FPGA development. I havent had much experience with Verilog as thats mainly used in America.
>>
>>57133078
We used SystemVerilog/Bluespec in a few courses and i thought it to be much more user friendly as VHDL, more like a non-hardware description language
dont know if thats so good tho, people learning with this from the start tend to forget they describe hardware and arent developing some java app
>>
>>57129029
Probably a grand conspiracy between Intel and RAM producers to justify yet another upgrade. I guess quad 10 GHz processors with 256 GB RAM will just about be enough to give you a "Hello World" on a web interface.

People have forgotten just how much you could do in 48 KB RAM on a 1 MHz 8 but processor back in the day. Now you have multiple layers of virtualisation.
>>
>>57133230
Right, I've heard that about Verilog as well. Isn't it just the Bluespec extension that does that though?
How was the """"debugging"""" process in Verilog though?
That's the only thing I feel apathetic about with VHDL because you really only can do the simulation to see what signals trigger what and when.
I "specialise" in pipe-lined data processing and that can be a real hassle to debug to find errors. Compilation times suck as well, even with cloud compilers it may take a while
>>
>>57133078
>then

pshhhhhahahahahhaah
>>
File: 1476796210048.jpg (45KB, 430x360px) Image search: [Google]
1476796210048.jpg
45KB, 430x360px
>>57133324
>{
>
>
>}
>>
File: kek.jpg (57KB, 500x773px) Image search: [Google]
kek.jpg
57KB, 500x773px
>>57128867
How about this?
>>
>>57130567
Web assembly is basically the Adobe Flash killer, or even Photoshop killer that Google wants. The relative success of HTML5, WebGL, asm.js, and Emscripten(LLVM really) has shown them they have a chance to dethrone native applications for good, even applications like mid/high end game engines and professional tools.

The only problem is first, many of these API's actually suck (WebGL and Web Workers) and second, the performance of ASM.js is about half of native in most places, and then a couple orders of magnitude slower in certain places.
Web assembly handily addresses this second problem.

Just one part of Google's new world order.
>>
>>57133426
>The only problem is first, many of these API's actually suck (WebGL and Web Workers) and second, the performance of ASM.js is about half of native in most places, and then a couple orders of magnitude slower in certain places.

Yeah... the ONLY problem... heh...
>>
>>57128867
Using Node.js on embedded systems is a stupid stupid idea.

HOWEVER...

Three years ago I started a career as an embedded software engineer thinking that what I do will have a lot to do with optimization and managing scarce resources and... it's not like that.

The (relatively old) hardware we use is actually a lot faster and roomier than one would expect. I think embedded hardware has reached the next step while the tools we use to write software for have been more or less the same for the past decade or two.
>>
>>57133641
> The (relatively old) hardware we use is actually a lot faster and roomier than one would expect.
Well, what's the secret then?
>>
>>57132113
java is a great language for servers
there's java for embedded devices like java card but it's super shit
>>
>>57131809
Does anybody have a bunch of these?
I want to get them printed as posters to frame in my office.
>>
>>57133792
>make a language for embedded devices so programmers wouldn't care about device architecture
>is actually shit
What a fate
>>
>>57133886
java cards aren't really anything like modern java, afaik it doesn't even support strings
>>
>>57133911
It's just a shitty language for a smartcard... people should have just gone with compiled C++ code...
>>
>>57133708
Moore's law?
>>
>>57132803
That's Pascal :^)
>>
>>57131299
In which language is node.is or every other JS runtime written?
Right, Its C
>>
>>57128867
let's take the mediocrity of nodejs to a whole another level
>>
NodeMCU
>>
>>57130567
I can think of two reasons:

1. DRM. Minified code, while not easily understandable, can still be run and debugged. With ASM, you won't be able to do any of that - you'll HAVE to buy that fancy touch enabled content slider, you can't just ctrl+S it from the demo site. Even the most basic protections will make it impossible to get working if it is in ASM.

2. this will make browsers a universal platform, which is the only way Google can break the x86 Windows market. Any app written in asm.js will run in Google Chrome irregardless if it is on Android or Windows or Linux or Mac. This gives them the ultimate control over application ecosystem, and pulls the rug out of other operation systems.
Thread posts: 77
Thread images: 16


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.