Code tour: The IPC system in SerenityOS

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Hi Andreas - Terry of TempleOS used to do a 5 minute random code tour series (hard to dig up on YouTube, but they're there) where he would use some RNG to index into a source file and then try his best to explain the subsytem/function he was in. It was pretty neat! You would be interesting in doing something like that?

ReagueOfRegends
Автор

Really enjoyed code tour format, didn't know more exist, will watch the others! (It will be nice to put them into playlist).

antonnovoselov
Автор

Would love to see more Code Tours! By the way, some unrelated questions:
What are your thoughts on UML and other design tools?
Do you personally design a system from scratch to finish before actually starting to code?

akkkarinn
Автор

I find DSLs very interesting. I'm currently playing around with a DSL for generating device driver stubs for my own toy OS. It's really cool when you see the code get inflated and all the tedious error checking code inserted automatically :)

Mad
Автор

VERY informative, thanks man. Is this design roughly the way IPC works in the mainstream operating systems we're familiar with? Are there any key differences you decided to go with versus your knowledge of how it may work in other systems?

QGDeclined
Автор

Note that the need of hardcoded endpoint file magic was removed in one of the patches. Now with (hopefully) collision-free string hashing, all we need is just a unique endpoint name.

russellershov
Автор

I thought this was about "Instructions Per Cycle". lol. Still pleasantly surprised.

sharoyveduchi
Автор

It is interesting to know about internals of IPC . I am wondering if serialization step can be avoided if communication is between processes with in the system.

sathyanukala
Автор

Can you make HTML wallpapers in serenity?

undefined_cat
Автор

Nice! Looking forward to code tours of HTML/CSS/JS :)

panruowu
Автор

OK, the compiler will generate the source code with those 'write' and 'read' functions. May You tell me how are You marshaling these arguments in the socket buffer to send the data in a structured scheme. Is it xml?
Is it the encode() thing in the send_sync or post_message ? That 'struct Message' ?
Well, the buffer has a kind of 'structure' with elements just like message_id ... Is these buffer 'structure' the same used in all the servers? ... i need to understand that buffer thing in different servers and different layers. The most lower layer is those circular buffers in the NIC. Is that right? But in this case the header can help us to see how the buffer is structured, it depends on the protocol type. May you tell us something about those buffers used by the network stack?

frednora
Автор

How do you handle multiple threads wanting to use some IPC method synchronously concurrently? How do you know which request belongs to which reponse?

FightbackII
Автор

Why send_sync but post_message? It would be more logical to have send_sync and send_async

konstantingeist
Автор

Is this based on an existing model? (For ex is this similar to how Linux does things?) Or is it a unique approach?

shifter
Автор

Is there a cat meowing in the background? :D

Автор

Is it just me, or is the video completely black at some parts of the video? - Like the audio is fine, but no video?

TheDumpap
Автор

All this sync and async talk... makes me want to get back to programming in Erlang. Too much C/C++ lately for me.

spawnlink