pouët.net

Go to bottom

Random line of code thread

category: code [glöplog]
echo '</body></html>';
Quote:
illegal

(the smallest program afaik)


What about just rts? Both opcodes are 2 bytes but rts is just 3 chars vs. 7 for illegal =) And don't tell me it's not a program, it's a perfectly valid program that does nothing :D


added on the 2008-11-24 20:52:58 by StingRay StingRay
stingray: a program with no code would assemble as well: i win!
added on the 2008-11-24 21:14:21 by earx earx
no you lose, how is a program without code a program?
added on the 2008-11-24 21:16:27 by StingRay StingRay
return unicodedata.normalize('NFKD', unicode_string).encode('ASCII', 'replace')
added on the 2008-11-24 22:05:02 by Kassoulet Kassoulet
stingray, just like the empty set is a set?

more formally, the program without code is probably defined as the language that accepts no strings at all. clearly, that is a well-defined program. it's even super awesomely platform and programming language independent! i could port it to befunge with relative ease. for instance.
added on the 2008-11-24 22:27:31 by skrebbel skrebbel
quisten2: sounds like brainfuck, the programming language
added on the 2008-11-25 03:00:12 by quisten quisten
okay, let me enter a single space into the editor: i am teh win! :)
added on the 2008-11-25 13:50:17 by earx earx
two spaces anyone?
added on the 2008-11-25 15:43:48 by mad mad
just for fun, os4 friendly double buffer switch, with tmp rastport struct managed to make cgx's scalepixelarray work:
Code: _pScreenToRefresh->m_pRenderRastPort->BitMap = _pScreenToRefresh->m_pBuffer2->sb_BitMap; _pScreenToRefresh->ds_CGXI->ScalePixelArray(_pRenderInfo->m_pPixelBuffer, _pRenderInfo->m_srcWidth, _pRenderInfo->m_srcHeight , _pRenderInfo->m_srcMod, _pScreenToRefresh->m_pRenderRastPort, 0,0, _pScreenToRefresh->ds_fullscreenWidth, _pScreenToRefresh->ds_fullscreenHeight,_pRenderInfo->m_srcFormat); // wait bottom of video frame: IGraphics->WaitBOVP( &(_pScreenToRefresh->ds_IntuitionScreen->ViewPort) ); while( IIntuition->ChangeScreenBuffer(_pScreenToRefresh->ds_IntuitionScreen, _pScreenToRefresh->m_pBuffer2) == 0 ) { // printf(" double buffer swap error\n"); IGraphics->WaitBOVP( &(_pScreenToRefresh->ds_IntuitionScreen->ViewPort) ); // wait again. } // swap screen buffers: { struct ScreenBuffer *pswap= _pScreenToRefresh->m_pBuffer2; _pScreenToRefresh->m_pBuffer2 = _pScreenToRefresh->m_pBuffer1; _pScreenToRefresh->m_pBuffer1 = pswap ;
added on the 2008-11-26 23:28:51 by krabob krabob
ccm query
added on the 2008-11-26 23:41:25 by Baz Baz
clf
added on the 2008-11-26 23:56:58 by bdk bdk
Code: bpl.findSegmentIdxNearXY(normCursorX, normCursorY, 64 * scalex, float(Viewport.width) / HEIGHT, mouseover_idx_p, mouseover_idx_c1, mouseover_idx_c2);


added on the 2008-11-27 02:06:47 by xyz xyz
Earx: You still lose. :D Also: $4e75 > $4AFC so I win!!!111 \o/
added on the 2008-11-27 10:10:09 by StingRay StingRay
$filelink = make_link(array(ARG_SITE => -1, ARG_ACTION => ACT_SHOWFILE, ARG_PAGEID => $_qb_arguments[ARG_PAGEID], ARG_PATH => str_replace('/', '__', $basepath), ARG_FILE => str_replace('/', '__', $v['_file'])));
added on the 2008-11-27 10:17:08 by Johann Johann
byte =(byte & (pos^0xFF)) | (value?pos:0);
added on the 2008-11-27 10:50:19 by panic panic
memory=WriteBit(memory,B3,((WMEM(B0)&RMEM(B2))|(RMEM(B0)&RMEM(B1))));
added on the 2008-11-27 10:53:26 by panic panic
Code:int main() { l10: printf("hallo \\n"); l20: goto l10; }

added on the 2008-12-08 16:58:01 by hfr hfr
void main(){for(;;){printf("### narf, poit zort ###\n");}
added on the 2008-12-09 00:50:23 by dq dq
Code:With particles.particle(particles.used(i))

dbra d0,.recop_palette 5*(4+64+3)+1 => 356+17 => 373
added on the 2008-12-10 20:10:20 by Dbug Dbug
if(!preg_match("/$strmask/",$mightybuffer[$tablearray[$i]][$b][$targetfields[$i][$f]]))
added on the 2008-12-10 20:47:33 by d0DgE d0DgE
http://www.bernardbelanger.com/computing/NaDa/index.php Smallest program ever, already done.
btw, random line of code:

LD H,R;JP (HL)
random line of code:
class Life(){
void live() {
// TODO
}
}

:(
added on the 2008-12-10 22:55:19 by doomdoom doomdoom

login

Go to top