klimi
guys
olli
https://github.com/NodeOS/NodeOS
But there are actually Operating Systems that are also written in JS
Mat
Mihail
Ибраги́м
Nooooooooooooooooooooo!
Mihail
Why?
Ибраги́м
Ибраги́м
Mihail
Roxifλsz 🇱🇹
Mihail
Mat
It's linux (probably GNU/linux that is the real OS) starting a JS instance
Mat
Not a JS OS in my opinion
BinaryByter
Mat
BinaryByter
WHY WOULD ANYBODY WANT TO COMMIT THIS ATROCITY?
BinaryByter
js is... ewww
Mat
Oh.. 😂😂😂
Mat
I heard TS is kinda good, but that's ot
BinaryByter
mumble
olli
Of course it's running on a Linux Kernel. But an OS is more than the kernel only.
Well in JS you probably won't leak memory, won't have issues regarding concurrency, and so on 😁
BinaryByter
i hate js
Roxifλsz 🇱🇹
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
#ot
Thespartann
Wadu hek is dis
Thespartann
I hope you don't teach js there
Thespartann
Thespartann
Need to do something like this
Thespartann
But with "No JS"
Prometheus
Anyone ever have a float print out as "-inf"?
olli
why?
Prometheus
I don't know why it is doing it but I didn't know if anyone else has ever had that happen. It's the first time I have.
Prometheus
I don't know what it means and google has been no help.
Prometheus
I have no idea. Here's a quote from the output copied from terminal "Current values are: -inf, -inf, -inf
Current guesses are: -inf, -inf, -inf"
Prometheus
Changing them to doubles to see if that helps.
olli
inf basically represents an overflow (or can be a float division by zero)
Prometheus
Must be an overflow then. It scrolls by so fast but I happened to catch numbers show up very quickly before it switched to that. Even with doubles it does it.
olli
what are you trying to do? the smallest normalized value is like 1.175494351 × 10^(−38)
Prometheus
Been working on trying to write a perceptron for the first time. Idk why the values are getting so small. I'm sure I just screwed up somewhere in my code and am not seeing it.
Ara
#ask .
Prometheus
/spam
Ara
How to calculate the area of circle and volume of cone,and silinder with language c with function circle() ? Help me plz
BinaryByter
/warn alright, so you seriously piss me off. Did you not know, that i am a future soldier of the american nation?
BinaryByter
/warn RESPECTZVZ MEEEEE!!!?
BinaryByter
/warn please take a sock and make a puppet out of it
Prometheus
BinaryByter
^s?
Prometheus
BinaryByter
Yea
Ara
I know .but ,if i choose menu silinder . i call function area_circle() too. What should i do?
Anonymous
Any tutorial on memory management
Anonymous
In depth like malloc and other stuff
Anonymous
olli
You can find the source code here
ftp://g.oswego.edu/pub/misc/malloc.c
Anonymous
Okay
Anonymous
Anonymous
free doesn't take a size argument
"When you malloc a block, it actually allocates a bit more memory than you asked for. This extra memory is used to store information such as the size of the allocated block, and a link to the next free/used block in a chain of blocks, and sometimes some "guard data" that helps the system to detect if you write past the end of your allocated block. Also, most allocators will round up the total size and/or the start of your part of the memory to a multiple of bytes (e.g. on a 64-bit system it may align the data to a multiple of 64 bits (8 bytes) as accessing data from non-aligned addresses can be more difficult and inefficient for the processor/bus), so you may also end up with some "padding" (unused bytes).
When you free your pointer, it uses that address to find the special information it added to the beginning (usually) of your allocated block."
Anonymous
Hi
Anonymous
I want to learn programming can someone guide me from where to begin?
Mat
BinaryByter
Anonymous
Okay, sorry for disturbing
BinaryByter
no it was a genuine tip
Mark
Mark
there was a project
Mat
#goodgoogling
Mark
utilizing kernel mostly written in rust and supporting wasm-based modules
Mark
so uh
Mark
can't you compile js to wasm?
BinaryByter
you can compile everything to wasm
Mark
Mark
you can compile C/C++ to js and wasm
Mark
🤔
Mark
that's different
BinaryByter
wat?
Mark
emscripten