The challenge is making something cool, i'm gonna give a shot at this in a bit.
Name:
Anonymous2014-01-07 5:20
OnHellFrozen(){
alert(" Ha! ");
}
Name:
Anonymous2014-01-07 17:43
class Test {
static function main() {
var mc:flash.display.MovieClip = flash.Lib.current;
mc.graphics.beginFill(0xFF0000);
mc.graphics.moveTo(50,50);
mc.graphics.lineTo(100,50);
mc.graphics.lineTo(100,100);
mc.graphics.lineTo(50,100);
mc.graphics.endFill();
}
}
What do I win?
something graphical * = $7c
ora $a2
and #$3f
tay
sbc $a1
eor $a2
ora $a2
and #$7f
sta $d400,y
sta $cfd7,y
bvc $7c
If you really want 50 lines just nop the rest...
Name:
Anonymous2014-01-08 4:45
Better challenge:
Something running on (not through!) the GPU (I don't care if it's NVIDIA, AMD, ARM, Intel etc.), on your VMS, DOS or UNIX hybrid franken OS of choice (Windows, Linux or OSX all count), without utilizing your graphics driver (i.e. write a minimal one) in 50 lines or less.
JFrame f = new JFrame("/prog/");
f.setVisible(true);
Name:
Anonymous2014-01-09 16:12
#include <stdio.h>
int main()
{
int i;
for(i = 0; i < 10; i++)
printf("I AM DEAVMI" "\n");
return 0;
}
Name:
Anonymous2014-01-09 16:13
dubs challenge
check em
Name:
Anonymous2014-01-09 20:43
Check it /prog/. It just uses SDL and SDL_gfx. I have a version where it uses LodePNG to load an image to the cursor, but then I can't add AG_HSV2RGB in the file with 50 lines, and need to link with the library it comes from (Agar).
This is very similar to what everyone here is doing, only this makes it obvious.
None of you are writing anything in less than 50 lines of code. You're writing something in less than 50 lines of your own code while using 100s if not 1000s of lines of someone elses.
I posted a simple ammended challenge, but no one has yet answered it. I can only conclude that either
1. Today's computers are fundamentally retarded and access to parts of it are very very very hard.
2. Today's programmers are not very good.
I'm not sure what you're getting at here, because code always builds on top of a pre-existing system. Besides another layer of abstraction, what's the difference between making use of a library in C code, or calling interrupts in assembly. You still at minimum make use of OS code and the hardware drivers.
It's pathetic that you have to use a driver to access the GPU. Imagine if you had to use a driver to access the FPU.
Name:
Anonymous2014-01-10 19:52
>>35
It's because NVidia and ATI keep the interfaces secret so Linux can't have better drivers than Windows. Imagine if Linux developers made a driver that got twice the performance of the Windows drivers on the same hardware. Gamers would be demanding games for Linux.
Yes the graphics hardware companies are in a conspiracy to keep linux down. Sure.
Or maybe the endless of variations on gpu hardware a computer has requires a layer of abstraction so code consistently works across all the hardware. Exposing hardware more directly would definitely have performance benefit for games, like it does on consoles, but not really that much, because how many games can afford to hand optimize for 40 different graphics cards every release.
The biggest performance gain for consoles is not that the hardware is more exposed, but that it's consistent, which makes it much easier to tune and optimize for.
Name:
Anonymous2014-01-10 23:03
>>37 Yes the graphics hardware companies are in a conspiracy to keep linux down. Sure.
They are, through bloated buggy binary blob drivers.
Drivers are always a cornerstone of the Operating System.
Its like engines in a car. You can push the car but it won't be useful for much of the tasks.
>>40,41
BIOS and EFI can boot from USB and Ethernet so it obviously has drivers for those devices, but you can't use them in your OS! BIOS has all these features but they only work in 16-bit mode so the OS has to reimplement everything. EFI forces you to use FAT partitions and EXEs to do what BIOS could do in 512 bytes.