[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]

javascript in kernal

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: 91
Thread images: 24

File: 1491004420147.png (2MB, 1080x1920px) Image search: [Google]
1491004420147.png
2MB, 1080x1920px
now that multiple c to j.asm compilers exist, and of course any language really can do this. why not just move a javascript interpreter into the kernel and forget native code entirely

it's the most popular language with the most powerful modern oop opensource codebase.

portability would be solved forever and we can really do what we've been flirting with for years now, this is obviously what we need

browsers are the portal to 90% of average users programs, this can finally end this and make the computing world make sense.
>>
File: 1491117708665.jpg (298KB, 1300x1920px) Image search: [Google]
1491117708665.jpg
298KB, 1300x1920px
>"Mozilla's benchmark from December 2013 showed significant improvements: "Firefox with float32 optimizations can run all those benchmarks at around 1.5× slower than native, or better."[7] Mozilla points out that the performance of natively compiled code is not a single measure but rather a range, with different native compilers (in this case Clang and GCC) delivering code of differing performance. "In fact, on some benchmarks, like Box2D, FASTA and copy, asm.js is as close or closer to Clang than Clang is to GCC. In one case, asm.js even beats Clang by a slight amount on Box2D."[7]"

> In one case, asm.js even beats Clang by a slight amount on Box2D.

rly makes u think
>>
>>59715717
Because then nothing would be fast.
>Your media player, system libraries, display server, graphics libraries, etc, all written in Javascript
No thanks.
>>
File: 1491004875072.png (2MB, 1080x1920px) Image search: [Google]
1491004875072.png
2MB, 1080x1920px
>>59715788
they could be written in C and compiled into javascript baaka

you could keep using the same software you use now if its opensource, infact it might even be faster thanks to software vs hardware based memory privacy
>>
>70% cpu during idle

Can't wait
>>
>>59715799
>written in C and compiled into javascript
How the fuck does that solve anything you retard? It would still be fucking slow because of javascript interpreter. And it doesn't even solve the portability problem.

I'd tell you to kill yourself, but then you'd stop posting Marie.
>>
File: 1491011573314.png (2MB, 1920x1080px) Image search: [Google]
1491011573314.png
2MB, 1920x1080px
>>59715817
you're retarded, if you had read my posts you would have noticed that I addressed the speed issue. Yes C compiled into asm.js can actually be faster than 'normal' C.

I even posted a specific example where it was faster already, and that isn't even taking into account the many improvements that would be made once we start trying (that I also mentioned btw)
>>
>>59715799
>they could be written in C and compiled into javascript baaka

You don't have a clue how things work at low level right?
>>
>>59715833
another baaka idiot who thinks he can outsmart marie rose lol

not even going to bother replying to you
>>
File: 1476324034872.png (509KB, 768x576px) Image search: [Google]
1476324034872.png
509KB, 768x576px
>>59715717
Because Python is better.
>>
>>59715839
>not even going to bother replying to you
And yet you did anyway.
Well done.
>>
File: 1491117553428.jpg (149KB, 1135x1080px) Image search: [Google]
1491117553428.jpg
149KB, 1135x1080px
>>59715844
javascript is by far the most popular programming language, this brings a myriad of advantages in itself

we would suddenly have all the greatest programming minds on the planet coming to develop opensource software for everyones os at the same time!
>>
>>59715830
>Yes C compiled into asm.js can actually be faster than 'normal' C.
Except that's literally not possible.
An interpreter cannot be faster than bare hardware, especially when it's the same language and code being compiled onto the two execution platforms.

Whatever fake article you're citing is full of lies and retardation.
>>
>>59715853
>greatest minds on the planet
>because a language is popular
Wew lad. What about all the people who listen to pop music, must be the greatest minds in music.
>>
>>59715857
you're a retarded idiot
>Except that's literally not possible.
HAHAHAAH

you are the worst type of person, you think you are smarter than everyone else when in reality you are an uneducated braindead MORON
>>
>>59715799
>they could be written in C and compiled into javascript baaka
Why? Thats just utterly retarded baaka
>>
>>59715853
>this brings a myriad of advantages in itself
Such as?
>>
>>59715853
At this point I realized this is just bait
>>
File: 1491009376066.png (2MB, 1920x1080px) Image search: [Google]
1491009376066.png
2MB, 1920x1080px
>>59715869
>>59715857
please educate yourself before posting on /g/

https://hacks.mozilla.org/2013/12/gap-between-asm-js-and-native-performance-gets-even-narrower-with-float32-optimizations/
>>
>>59715867
Explain to me how it's possible, assuming both compilers are equally optimizing, that C compiled to JS can be faster than the same C compiled to machine code.
It's retarded nonsense.

The interpreter would ALWAYS have more overhead than the compiled version.
>>
>>59715891
are you incapable of reading?
get the heck out of my thread if you are just going to continually embarrass yourself in impotent autistic rage just because an ANIME CHARACTER on 4chan is more intelligent than you
>>
>>59715881
>the current performance numbers – 1.5x slower than native
Yup, it is slower than native. So why go extra step to slow it down?
>>
File: 1474137356189.png (279KB, 377x465px) Image search: [Google]
1474137356189.png
279KB, 377x465px
>>59715897
Some random SJWzilla article says it's possible therefore it's possible?
If I wrote an article claiming that water burns you to the touch, would you believe it? because it seems you would.

>just because an ANIME CHARACTER on 4chan is more intelligent than you
But I'm also an anime character. Pic related is me right now while reading this thread and your posts.
>>
>>59715907
READ CANT YOU READ WHY DO I HAVE TO SPOON FEED YOU MOOROOONSSS

there are ALREDY examples of asm.js programs running faster than native in box2d; its 100% possible and barely any work has been done on it
>>
>>59715916
No there are not. There has been no development in 4 years. Shitty idea had its death long ago
>>
File: 1460565411235.png (1KB, 37x30px) Image search: [Google]
1460565411235.png
1KB, 37x30px
>>59715897
>
Discarded.
>>
File: 1491009174362.png (3MB, 1920x1080px) Image search: [Google]
1491009174362.png
3MB, 1920x1080px
>its not possible
to
>lol fake news

hmmmmm
>>
>>59715916
Seriously are we looking at the same graph? Compiled C is vastly superior
>>
>>59715916
>Hur dur one example that beat a shitty compiler
>Meanwhile ignoring literally all the other benchmarks on that chart.
On average slower. No thanks.
>>
>>59715959
disregard this faggot, continue posting her
>>
File: 4535503298093476486_account_id1.png (2MB, 1920x1080px) Image search: [Google]
4535503298093476486_account_id1.png
2MB, 1920x1080px
>>59715962
>>59715968
woah its the sound of goalpost moving at hypersonic speed
>>
>>59715870
lewd
>>
>>59715916
>lower is better
>only one case where firefox-f32 was slightly better than clang
>still shit compared to gcc

>As the graph shows, Firefox with float32 optimizations can run all those benchmarks at around 1.5x slower than native, or better.
>1.5x slower
>>
>>59715914
you can download the tests on github, which i've done
>>
>>59715973
woah its the sound of ur rectum expanding at hypersonic speed when u take huge dicks in your ass
>>
File: 1491117885456.jpg (439KB, 1470x1638px) Image search: [Google]
1491117885456.jpg
439KB, 1470x1638px
btw in the end when javascript reaches the eventual parity with c compiler on majority of programs, it will immedietly be 20 - 30% faster anyway thanks to software based memory protection instead of hardware based interrupts and traps

even with a 10-20% vm overhead this is still faster in the end
>>
I want to touch Marie's no no zone!!
>>
>>59715973
No goalposts have moved.
Remember when I said
>assuming both compilers are equally optimizing
Take a look at the gcc bar, it thoroughly btfo's everything else. Clang is not mature yet and when it does get mature, it will be on the same level as gcc, btfo'ing firefox.
JS will never objectively be faster than compiled code. Sorry.

>>59715998
All it proves is that Clang doesn't optimize well enough.
>>
>>59716009
the only mathematical advantage you have is vm overhead which I already btfo hhere: >>59716005


please leave this thread if you are too uneducated to keep up with the discussion
>>
Do you have loli 3d models?
>>
>>59716005
>btw in the end when javascript reaches the eventual parity with c compiler on majority of programs
Will never happen for as long as javascript is interpreted.

>thanks to software based memory protection instead of hardware based interrupts and traps
That will make it slower retard.
>Checking memory accesses EVERY TIME in software
Not to mention that your CPU will ALSO be doing the same thing, since you can't turn it off, so that's even more added overhead.
>>
>>59716005
How are you going to do software based memory protection on hardware? Are you trying to browse the webs with software running on imaginary hardware?
>>
>>59716044
>That will make it slower retard.

wrong, microsoft study says 20-30% speed improvements using software

>>59716045
the same way your browser 'protects' one tab from another, there will be no memory protection done on chip
>>
>>59716054
So you are saying there will be software based memory protection but no memory protection? Good luck shitposting with your imagination
>>
>>59716054
So basically you're forbidding any and all native code from running on the system besides the kernel?
That's fucking retarded.

Also, that would open up the system to a fuck ton of security problems since the interpreter would be running in fucking kernel mode.
Any exploit found in the interpreter and your system is fubar.
>>
>>59715799
That's the most retarded thing I have read in years.
>>
>>59716076
how often javascript escapes sandbox today? you are inventing problems to justify your outdated viewpoints on software

>>59716084
read the thread and if you still think you have a point reply again and ill btfo you like everyone else
>>
>>59716087
Only person getting btfo'd here is you. I'm laughing at your stupidity/trolling
>>
>>59716103
haha nice argument dood you really proved to everyone you;re smarter than a barely pubescent anime girl
NOT
>>
>thread turned from marieposting to autism
Classic /g/
>>
>>59716087
>how often javascript escapes sandbox today?
All the time.

The more major something is, the more attention it gets.
Many people are definitely going to dedicate their time to finding exploits in the interpreter, and they WILL find those exploits.
And once they do, they can wreak absolute chaos on everyones systems.
>>
>>59716107
Didn't say i was smart
>>
>>59716107
Did I fucking tell you to stop posting Marie?!
>>
File: Unsorted:V 13.jpg (201KB, 1080x1920px) Image search: [Google]
Unsorted:V 13.jpg
201KB, 1080x1920px
>>59716117
obviously more work will be given to fixing exploits once its used, example CURL in C is written in one of the most unsafe languages in the world but its constantly and forever probed for issues and avoids any major security holes

javascript is the biggest codebase and the most programmers in the world to be dedicated to this problem

not to mention javascript interpreter can be freaking tiny


>>59716122
okay im sorry
>>
>>59716147
*libcurl
>>
>>59716147
why do you work so hard for male attention on 4chan anon?
>>
>>59716159
im here to discuss intellectual topics of technology
>>
>>59716159
/g/ is 100% male.
Anyone trying to claim they are female is just a retarded trap.
>>
File: Unsorted:V 8.png (3MB, 1080x1920px) Image search: [Google]
Unsorted:V 8.png
3MB, 1080x1920px
>>59716170
uhhh im a girl sorry if that intimidates you
>>
File: 1484980141511.jpg (94KB, 770x1024px) Image search: [Google]
1484980141511.jpg
94KB, 770x1024px
>you will never pipe your compiled JS into maries kernal
>>
>>59716181
:lewd:
>>
>>59716178
>just a retarded trap
>>
I've actually thought of implementing a Lua interface for drivers in my kernel.
Just as a fun experiment, not anything serious.
I don't even know if I'd be able to compile the lua interpreter to run in kernel mode without an stdlib.
>>
>>59716203
that's a cool protect anon, goodluck
>>
>>59716178
give me a blowjob
>>
File: JQ8gVSU.jpg (208KB, 1280x720px) Image search: [Google]
JQ8gVSU.jpg
208KB, 1280x720px
>>59716181
>tfw marie isn't free and open-source
>>
>>59716178
It doesn't intimidate so much as explain the retardedness of what you're saying
>>
>>59716214
get away from me creep
>>
>>59716224
ok bye
>>
File: p.jpg (257KB, 819x1023px) Image search: [Google]
p.jpg
257KB, 819x1023px
>>59716219
>marie will never give you a 5 hour debugging session
>>
File: AOK.png (55KB, 217x190px) Image search: [Google]
AOK.png
55KB, 217x190px
>>59715799
>baaka
>faster thanks to software vs hardware BASED memory privacy
>>
File: 1490956543955.png (3MB, 1920x1080px) Image search: [Google]
1490956543955.png
3MB, 1920x1080px
>>59716292
this is an intellectual girls thread only
>>
>>59716302
then why are you still here?
>>
File: 1489076429141.jpg (229KB, 1920x1080px) Image search: [Google]
1489076429141.jpg
229KB, 1920x1080px
>>59716339
because im an intellectual girl
>>
>>59716344
you're a slutty girl
>>
>>59715717
https://github.com/Microsoft/vscode/issues/22900
>CPU usage even when idle (due to cursor rendering)
>>
>>59716370
wtf how do i delete someones post in my thread
>>
>>59716388
well I can keep quiet if you do something for me
>>
>>59716392
MODS! im being sexually harrassed
>>
>>59716400
>sexually harrassed
where?
>>
>>59716400
they arent here to save you *unzips*
>>
>>59716344
You're certainly a cute girl, but I wouldn't call you an intellectual girl.
>>
op is a SLUT
proof: http://gelbooru.com/index.php?page=post&s=view&id=2954543
>>
just came here to say marie rose is the best girl, now I'll return to never browsing this board
>>
>>59715717
>kernal

How does being mentally challenged feels like?
>>
>>59715717
var redux-scheduler = require('redux-scheduler');


just imagine the painfully slow performance.
>>
>>59715717
What do you get out of having an interpreter in the kernel that you can't just get from having a standalone interpreter?
>>
>>59715830
>MUH SYNTHETIC BENCHMARKS!

Spend some time on code competition sites and pay attention to algorithm execution times (obviously with samples from people who took the same approach to the problem). In order from fast to slow:
C
C++
C#/VB.NET
JavaScript
Java (yes, Java is fucking slow)
Shit like Haskell and Scala

C and C++ are typically close. C#/VB.NET are typically decent but several times worse than C/C++. JavaScript is slower again by a few times. Java is absolute shit, and only meme languages like Haskell are worse.

Python is either shit or surprisingly decent. When it's decent, it's actually faster than JS.

So I don't want to hear about your synthetic (and likely 'fine tuned') benchmark bullshit. Java fags will claim they're just as fast as C to. In reality Java is one to two orders of magnitude slower than C. Sometimes even worse.
>>
thanks for the marie pics
>>
File: 1476685828497.jpg (226KB, 1329x1500px) Image search: [Google]
1476685828497.jpg
226KB, 1329x1500px
Thread posts: 91
Thread images: 24


[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.