SpyderTL wrote:
Quote:
INSERT INTO `GDT` SET `Base` = 0, `Limit` = 0xFFFFFFFF, `ring` = 3
So... would you be typing this into a text editor and then compiling it with some sort of SQL-to-ASM compiler? Or would you be typing this into a console application while the OS was running? (Or both?)
I used SQL as an example since it is well known, I was thinking of having a structure of pointers in HAL labeled something like INSERT, UPDATE, SELECT, DELETE, etc...
SpyderTL wrote:
Another thing worth mentioning is that the keywords "INSERT INTO", "SELECT", "SET", "WHERE", etc. are pretty well defined across the database industry. However, what you would need is the "Schema" for all of the available "Tables", "Columns", "Views", and "Stored Procedures", and they would need to be "standardized" and well documented before you could use them.
And again this seems like an abstraction layer such as GDT, it has base, limit, ring, io permissions, etc., so you would use a simple database design to split up the hardware dependent struct into segments of data you require.
SpyderTL wrote:
The other cool thing would be that you could "emulate" the system by building a, let's say, SQL Server database with the exact same schema, and you could test all of your "queries" and "updates" against that before actually trying it in the real system. (i.e. use SQL Server as a sort of Virtual Machine.)
That's a very cool idea, I wouldn't of thought of it, but I can gamble (knowing me) I would go strait to building the kernel.
SpyderTL wrote:
It's an interesting concept. I'd like to see a list of common problems that OS developers deal with and the SQL statements that would solve those problems. Tasks, Threads, Consoles, Windows, Events, Drivers, etc.
I would too... And maybe we will...
SpyderTL wrote:
EDIT: It also just occurred to me that remoting into this OS would be trivially easy. You might even be able to use the same network protocol as SQL Server or MySQL...
Also a very interesting idea...
I have parts of this concept in my kernel now, and am so early on this build anything is possible.
The more I'm talking about it the more convinced I am to make a proof-of-concept kernel...