| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> thanks a lot :) <0> what device is used now? <1> i had the same problem, except just not upgrading but building gentoo ;] <0> fuser /dev/dsp is not in use anymore <0> even if i play something <1> ktne: not sure, maybe /dev/sound .. <0> no such file <1> or, i am not sure at all, the alsa is newer tso /dev is not in use maybe.. <0> i see <0> now to install x.org :) <0> i hate debian sarge. it's so outdated <1> ktne: what distro? <1> using debian? ;) Get Gentoo! <0> gentoo takes a lot to build <0> and it seems too complex to install <1> hm not so complex
<1> if you are new - yes. but then you learn hwo linux generally works <1> well, not linux - really hwo the system.. <0> well i know enough about how linux works <1> i dont know anything at all how kernel works, very complicated stuff.. <1> ktne: gentoo is really fun <1> http://wykis.com/wcms/Blog/view/27 :] <0> well i'm working on my own small kernel :) <1> I am enjoying gentoo much more than debian.. <1> ktne: are you? Third person today ;) <0> :) <1> how long was you working on it? what are the capabilities? <0> well it runs a VM <0> and in this VM i run my own programming language <0> i have console and IDE disk access :) <1> hehe :) <1> ASM/C++ ? <0> asm+c+my language <1> any links?:] <0> but my language has a really stupid compiler so i try not to use it too much yet <0> no, it's closed source :) <1> =P <1> you made the compiler from c though, right? <2> not my language :( <2> printf("not my language :(\n"); <0> Drakas: pascal :) <1> im php god ;} which means im crap at a or c++ <1> ktne: yee! :) Pascal rules <0> Drakas: i find object pascal much better than c++ <1> pascal is much easier than c or c++ :) <0> it's not because it's easy. i use it because it has very good debugging capabilities <1> :) i still use pascal, its easier ;} <1> so how do you create applications that create another applications? hwo do you create compilers? <0> well a compiler just takes source code and outputs opcodes <0> opcode = raw cpu instructions <1> hm, not very nice - so the apps can control cpu directly? ;/ <1> can't it be like that apps send kernel messages of what to do and then, kernel p***es messages to cpu? <1> ktne: how do you actually make it to output raw cpu instructions? <0> there is a specific raw format defined by intel <0> you just convert to that format <0> (like jpg or bmp) <1> ok. ;] <0> then you feed those bytes into the cpu and the cpu executes them <0> the cpu "knows" the format :) <1> okey. can you actually run your kernel from grub ? <0> yes <0> but i don't use grub, i've wrote my own bootloader too <1> hehe leader :D <0> but i'll switch to grub in the future <0> so that it's easier to boot <0> it's more flexible <0> my current bootloader is very limited. similar to that used by windows <1> hehe ;) ktne being in competition with ms :0 <1> seems like one user needed to compete with a big company :D <0> i don't try to compete with windows <0> neither linux :) <1> :D <0> what's interesting about my os is that is specifically designed for my needs <1> hm, do you know how to actually execute specific code straight to cpu which could be defined by the user (like javascript)? <0> i don't care at all if no one else will use it :) <0> yes
<1> can you tell me?:) <0> javascript is run in an interpreter <1> hehe, 'd love to have my own os <1> ktne: well, interpreter. yes <0> interpreters are easy to code but they are slow as hell <1> about speed - i already knew, but still fast engough on 2ghz ;) <0> first thing you have to do is to code a virtual machine <0> first thing to do that is to define a bytecode format <0> then you write an interpreter for that bytecode <0> a bytecode contains a number of very basic instructions that can be executed <1> meh, i forgot pascal overall ;) <0> like addition, multiplication, etc <0> pascal is not good for bytecode <1> so what to do /:)) <0> you should use something like forth for bytecode <0> i mean, you can write the compiler in bytecode <0> err in pascal <0> but don't execute pascal-like bytecode :) <1> how do i make bytecode?:) <0> the bytecode needs a standard first <0> a format that you define <0> on paper <0> what command should do what <1> ..for example ? <1> oh commands yes, just basic ones. multiply etc.. <1> will make some crazy thing <0> do you know basic? <0> BASIC <1> yes, had done a bit before <0> you can do something like basic <1> very basic ;) <0> a very simple language <1> hwo would you handle if functions etc.? <0> then you convert let's say the javascript code to that very simple language <0> well it's better to know how others do <0> for example the x86 cpu does like this <0> it has one instruction called Compare (CMP) <0> you CMP two operands, like 2 variables <0> then there is one special variable called EFLAGS that stores the result <0> then you have conditional GOTO <1> tmp 15; tmp 18; math multiply; set myvalue; <0> do you know GOTO? <1> yes, i do <0> 1: a = 3 <1> used to mIRC script. now introduced in php 6 <0> 2: b = 4 <1> what if you have a block of instructions? <0> 3 : cmp a,b <0> you are jumping <0> from one thing to another <0> wait to finish :) <1> i know =) <1> the thing with me is that i dont know something. when a person starts it, i realize whole thing myself and then jump next ;] just like goto + 1000 <1> i am going to make my own simple interpreter <1> will require very logical thinking ;) <1> hwo do you split up a string in pascal, by a custom char? <1> like php's explode.. <0> http://rafb.net/paste/results/yrbvvs72.html <1> yes :) <0> GOTO_IF_0 checks to see if eflags is zero, if it is then it jumps <1> so simply i could make up an array and then use it's indexes that could be set by the goto <0> unlike a normal GOTO that always jumps <0> what are you speaking about? <0> there i told you how to interpret an IF instruction <1> yes i understand the thing now <0> IF (a=b) PRINT("they are equal") else PRINT("they are not") <1> :) <1> got ya <0> you transform that into bytecode <3> what's this programming for noobs <3> heh <1> Lord-Voldemort: well?:) i am a noob (in c++) ;] <3> heh <0> Drakas: you have 4 types of GOTO: simple unconditional GOTO, GOTO_IF_0, GOTO_IF_POSITIVE, GOTO_IF_NETGATIVE
Return to
#kernel or Go to some related
logs:
#perl #lisp #physics arc theta aproximation mplayer-essentials unmask mplayer-bin banshee foxytunes
#perl emerge --metadata python nested list flatten
|
|