IRC-Galleria

arafat

arafat

Pekka Puupää

Selaa blogimerkintöjä

sei on cod, sei on cod, sei on turska, turska on kala: hankala homma onkiva ja mukava kans'. Niistä kun pitää ja sen kun muistaisi aina ja vaan.

Tämä liitännäinen on haavoittunut ja se pitäisi päivittää, mutta jos ei päivitettäisi yhtään mitään soitetaan linkistä ja kuunnellaan ihaillen: Infected Mushroom - Becoming Insane (Widdler vs VoodooSteamBoat Dubstep Remix) -- http://www.youtube.com/watch?v=uzsk70C7MkM

EI OLE HIRVEÄSTI EIKÄ KAUHEASTI POIKETEN MUUTTUNEET SÄHKÖRADAT AIVOISISSANI NE, JOITA KÄYTÄN KUN TÄÄLÄ ITSEÄNI ILMAISEN JA SIKSI NÄIN JA NIINPÄS NÄINKIN. OLEN SITÄ MITÄ KUVITTELEN MUISTA JA HARHARHAR KUN SE MUA NAURATTAISI, JOS NIIIN.

Oli karmia työ etsiä tuo nimom versio becoming insane ja a ja widdler vs voodooSteamBoat kun tästä on tullut mun tai tuosta ja tästä on tullut mun tähen ja vuoksi ja onneksi niin suosittu tuolla juuriatuubissa...

katsokaas kun oli tällainen asia aiheena, jos se sopii tai edes mahtaisi mahtua tai tulisi jotenkin esiin... muuttoauto:

Tekisi mieli tehä ohjelmointikieli ja virtuaalikone, mutta niin että assemblylla ja alusta kaikki. Jos inho ja realismi kiinnostaa niin yhteyksiä otelkaa.

Esimerkin ongelma (alla) on nipattu Seth D. Bergmannin kirjasta ja kurssista Rowan University 2010; Compiler Design: Theory, Tools and Examples C/C++ Edition.
vastaavaa käsittelevää kiinnostavaa tekstiä löytyy Bill Blunden: Virtual Machine Design and Implementation in C/C++, sekä parhainpana kaikessa Dworking's: DGD Dworkin'g generic driver, joka tarjoaa toimivan palvelimen, jonka ohjelmat voi kääntää ajoaikaisesti uudestaan ilman odotuksia, mihin pyrimme ja tulisi pyrkiä: sano ei ja haistata pitkät .NET PASKTEHTUURILLE!


Section 1.1 What is a Compiler? page 7

exerc 1.1 Show assmebly language fr a machine of your choice, corresponding to each of
the following C/C++ statements:

1.a) A=B+C;
mov ax,#B ; #-numersign marks immediate argument for operandcode(*
add ax,#C
mov A,ax

1.b) a=(b+c)*(c-d);
mov ax,b
add ax,c
mov bx,ax
mov ax,c
sub ax,d
mul ax,bx
mov a,ax

2.c) for (i=1; i<=10; i++) a = a+i;
mov cx,0x1; typically cx is counter register. there might even be an instruction that automates inc/dec conditional jumps
mov dx,10
xor ax,ax ; zero accumulator just in case
L:add ax,cx
inc cx ; here the bud lyes (if bug is a lie then it lies otherwice it lyes as a latent waiting to be awaken
cmp ax,dx
jbe L: ; jump if below or equal
nop ; potentially there is an instruction to jump conditional w/o compare on some more advanced cpus. this is 80286 compatible

2. Show the difference between compiler output and interpreter output for each of
the following source inputs:

a) A=12;
B=6 ;
C=A+B;
cout <<C<<A<<B;

a) prints: 18126 //as A+B=12+6=18, A=12 and B=6 when cout is print-routine to standard out channel in c/c++ -language dialects

b) a=12;
b= 6;
if (A<B) cout << A;
else cout << B;

b) since there is a conditional A for being less than B, wich is false the else expression is executed output being:
6
with some cases depending on what kind of interpreter is in use the output might be more expressive, like '>'-character denoteing input from user to interpreter:
>a=12
a=12
>b=6
b=6
>if (a<b) cout << a;
>else cout << b
6

and so on...

ofcourse the above is merely pseudo-code and acceptable as such may vary gratly from implementation to ohter on of the few freely available c-environments with capability for interprete c-language is available from cern at the address cintxyz

what I would recommend as an interpreter for language leraning would be MinCaml, wich is an environment for a functional -language. I prefer to view any C-dialect as functional language but in computation theory the definition is more strict such a way that a function must and will always return the same value when parameters are same. But in c things are viewed as having side-effects, think that as progarm calling the same function having the return value, perhaps the same for every call, but effecively you might get a side effect wich shows on screen as a change of a character on screen, while the return value indicates just that the operation had been successfull or correct even if no apparent effect (for example a character added to end of line not showing on the screen, wich might have been a window or console, either havin a limited lenght for the line to be shown)

Let me statte my suspction to you that there are individuals who promote natural language as programming language. one such being the author of latex, wich I like as an idea a lot. As i would have implemented WWW - I'd done it with UDP for reasons it to be less acceptable and more fitting for sensorchip: when sencorship mostoy has impact on commercially embeded information within wwww-pages. with no apparent advantage on the information involved or included, it would have been imminent with browsers being able to parse the pages with order of importance driven by UDP-packet control on the receiving end instead of wasting bits on connection based transmission instead of TCP. Now it is easy to see why noone would move back to use UDP, unless some idiotic movement to shift the cost to transmitted amount of data, wich I can only see as an ill-minded method from the user point of view:
most users of any communication devices have no idea how much data is moved between the querid machine/host, and being forwarded on using their channel(s), as it will ultimately be done in the wiereless worl where everyone will act as a proxy for thei neighbouding terminal: as more context and surround -aware systems and tools become widely used apparatuses and applications of them users not being aware about the serviceproviders.

ja koska niin on ja niin on koska kukaan ei halua maksaa datan siirrosta, joka - datansiirto on ainoa selkeä operaattoteiden välillä mitattavissa oleva sähkönkulututs ja siten se on tehtävä.

OSTAKAA, hyvät ja pahatkin ihmiset, SE KUPARILLA KULKEVA INTERNETTI JA PYSYKÄI EROSSAA FIREWIRESTÄ, PITÄYTYKÄÄ BLUETOOTHISSA, jos mahdollista, ja jos ei minä konsultoin.

halleluja ja antaa antin tulla ja sanella,
antti, se -miä, sanelee vaan kivoi ja heleppoi ja hienoja juttuja, mitä kannattaa tehä ja mihin ei kannata ruveta lainkaan.

p.s. elämä on heleppoa kun tekee ja tottelee oikeita aravoja, joita minä vain edustan, en sanele




*)operandcode means that there is a machinecode instruction with oprands. an operand may be a register, an immediate value (comparable to constant, unless codemodifying code is used), or an indirect value wich is a reference to a memory location similar to C address/pointer expression, the efficient ways over some shitty guarded means(2
matematiikka on niin vaikeata, mutta jos osaisin sitä rakentaisin kääntäjän ja moniajon pelkällä logiikalla ja matriisilaskennalla niin
että käyttäisin pelkkää kokolukulaskentaa ja 128bittisillä rekistereillä loogisin operaation tarkastelisin tilakoneen tilaa ja auroja
sekä jouhia, ruotuja ja kangaspuitten patternia ja suorittaisin vaan enkä kattoisi viheitä lainkaan, mutta muut ei toimi niin, minä en
koska en osaa, matematiikka ja matriisilaskenta on siitä hankalaa että apua tarvisin virtuaalikoneen teossa sellaisessa, murhasta tuomio
niin sitte olis aikaa keskittyä ja vähän se pakkokin kai. muuten ei tule mitään ellei sitten uhkaillen ja kiristämällä vähän lisää :P

2) if you were a programmer in a team that is to send a satellite to outer space not to be hauled or forfitted with shuttle flys, for obvious reasons, you really would prefer to be able to modify the existing code out there, for reasons unimaginable at the time of launch. That must be a machine dependent code, for it is OS you are updating: did the physicians make an error predicting the fligh route calculation or what of many reasons things might go wrong while programming with fault tolerant languages, which never achieve that, unless I'm the overseer :P

kyl miä osaan ja tiedän että opin, jos jotain kiinnostaisi yhtä paljon, mutta kun ei ohjelmmointi kiinnosta ketään, minun sanomana sitä
voi vain inhota. siinä pellossa ei ole kiva elää kun tietää ja muistaa, niitä olleen ketkä taisi, tiesi ja tajusikin, jopa taitaen selittää ja
kysyä kun tarve on, kuten toimin ja toimia tulee, kukaan ei kaikista osaa kaikkea, mutta hanskassa pysyy kun tuntee kielen ja kekkaa ne ketkä voi tajuta tai tajuaa vaan, kun niitäkin on: sen tiedän itseni tuntien. koodaus on kivaa ja siihen voi ihastua peruuttamattomasti se onneni on, saan itseni kyyneleisiin, se onnea on, nyt tiedän, nyt en ja sitten taas tiedetään niin saakelisti että itkuja tulee ja saa luvan itkeä kun ei muut niin tee eikä kiinnostu itkusta niin että ohjelmoinnilla onanoisivat itsensä uneen, niin teen ja niin olen aina tahtonut tehdä.

se minä olen ja siksi niin, jos ei muu kiinnosta on todella paneuduttava siihen mikä saa soiron ohjoooh ja mähmeeh ja mä ähkyn ja määh voihkin ja kun määh teen niitä äänia ja niitä liikkeitä millä äänein syntyy, minussa on ja päässäni eritoten sellainen olo josta Asimov on kertonut: Jonain päivänä! mihinkään ei tarvi enempää ja sen pitää riittää, en tahdo hallita tai voittaa tahdon vain tehdä, toteuttaa ja saavuttaa teoillani avaruuden: jos saan koodia satelliittiin olen hyvin iloinen ja annan ahneuteni kasvaa, mutta nimitän sitä kiinnostukseksi ihailun ja saavutusten kunniaksi.

mitä muuta voisi tehdä kuin enemmän ja sitä vain mitä haluaa, muu on hulluutta: ja kaikki munlainen on suuruudenhulluutta; sen tahdon lannistaa itsessäni kuin muissakin ja se tehtävänä olen ja olen vaan enkä sitäkään aina ,)

Etkö vielä ole jäsen?

Liity ilmaiseksi

Rekisteröityneenä käyttäjänä voisit

Lukea ja kirjoittaa kommentteja, kirjoittaa blogia ja keskustella muiden käyttäjien kanssa lukuisissa yhteisöissä.