Live data from Hacker News

Writing a winning 4K intro in Rust

codeslow.com

61–70 of 94 posts

Re: Writing a winning 4K intro in Rust

#61
post #57
post #33

I love the demo scene, but the culture is kind of strange. Like I've been fooling around with the C64, and all the tools (emulators, debuggers, and etc) are hosted on source forge, or sometimes this random ftp. The author of the debugger I'm using proudly proclaims that he only works on it when he's fucked up on drugs after parties. The documentation of some tools has lewd ascii art, and etc etc. I appreciate the ant…

> a little more professional After witnessing how "professionals" act behind closed doors, the difference is merely a mirage, in order to not affect the business image.

Well, of course. A “professional” does not (cannot) behave professionally 100% of the time, the idea is that when doing work that interacts with others, that’s when you’re more professional.

Re: Writing a winning 4K intro in Rust

#62
post #33

I love the demo scene, but the culture is kind of strange. Like I've been fooling around with the C64, and all the tools (emulators, debuggers, and etc) are hosted on source forge, or sometimes this random ftp. The author of the debugger I'm using proudly proclaims that he only works on it when he's fucked up on drugs after parties. The documentation of some tools has lewd ascii art, and etc etc. I appreciate the ant…

>are hosted on source forge

Actually i like source-forge, it does not attract the twitter and facebookish folks as github seems to, aka

https://github.com/nikolas/github-drama

Re: Writing a winning 4K intro in Rust

#63
post #57

Earlier quoted context omitted.

> a little more professional After witnessing how "professionals" act behind closed doors, the difference is merely a mirage, in order to not affect the business image.

Well, of course. A “professional” does not (cannot) behave professionally 100% of the time, the idea is that when doing work that interacts with others, that’s when you’re more professional.

I never have that requirement for any community I want to take part in to be honest. If I don't like it, I am going to look elsewhere.

What I consider unprofessional for example is banning people from your service because a mob demands it. Paypal is an example of a service for financial transactions that banned users fallen out of good faith. Here professional distance would actually make sense.

Imagine IT services giving out personal information of people they don't like, it is completely unimaginable. I think this is a real danger for large social media sites given the behavior of companies.

Re: Writing a winning 4K intro in Rust

#64
post #29

Looks nifty. Seems to only compile on Win though: $ xargo run For more information about this error, try `rustc --explain E0463`. error: could not compile `winapi`. Still, probably good for interest/learning from. :)

Hm so it's leveraging the Windows API. I thought demos were supposed to be bare-metal.

There's no such thing as bare metal today, unless you want to go from real to protected mode and fit a graphics driver in 4k. Basically impossible

Re: Writing a winning 4K intro in Rust

#66
post #9

I learned programming on the TRS80, and didn’t know about the demo scene until I was already too busy with other parts of my life; I think I first saw a demo on the Amiga. I always feel like I missed out on something transcendental. I think I would have leaned a huge amount. Instead I had to settle with hacking NewDOS/80 binaries. I have a huge amount of technical respect for the people who do this stuff.

I grew up on BBS (started dialing at age ~6) There were only two types of programming that intimidated me so much I wouldn't even try: people writing languages from scratch and the demo scene people. I just sat back and said "nope, I'll never get there."

Haha! I wrote a logo inspired language to do graphics programming. It was an interpreter written in BASIC. You didn’t miss much :)

I also wrote a BBS, so go figure...

Re: Writing a winning 4K intro in Rust

#67
post #24
post #6

Earlier quoted context omitted.

Compiler optimizers are full of surprises going both ways: good and bad. And details like this can probably change from version to version and get affected by compiling options. I would also expect that performance is higher priority than code size, generally, so missed opportunities like this might go unnoticed and unaddressed a long time if they don't show up on performance benchmarks.

The classic example of surprising optimization is perhaps matrix multiplication in Fortran: At some point in history, when you wrote the straightforward, primitive three-nested-loops version of matrix multiplication your code ran much faster than when you tried to implement one of the more sophisticated algorithms. That was because the Fortran compiler recognised the primitive version and replaced it with a special p…

> The classic example of surprising optimization is perhaps matrix multiplication in Fortran:

> At some point in history, when you wrote the straightforward, primitive three-nested-loops version of matrix multiplication your code ran much faster than when you tried to implement one of the more sophisticated algorithms.

It might also have been due to Fortran using column-major matrix layout; if you try to implement a sophisticated multiplication algorithm that is optimised for row-major matrices, then that will be slower (indeed, also the row-major three-nested-loops version is already quite a bit slower). Another thing is that the sophisticated algorithms usually have some constant overhead that makes them shine only on sufficiently large matrices.

Re: Writing a winning 4K intro in Rust

#68
post #35
post #33

I love the demo scene, but the culture is kind of strange. Like I've been fooling around with the C64, and all the tools (emulators, debuggers, and etc) are hosted on source forge, or sometimes this random ftp. The author of the debugger I'm using proudly proclaims that he only works on it when he's fucked up on drugs after parties. The documentation of some tools has lewd ascii art, and etc etc. I appreciate the ant…

"On the one hand, I found a program that does exactly what we need. On the other hand, not-quite-dressed anime characters..." I've had this exact conversation with coworkers before.

[deleted]

Re: Writing a winning 4K intro in Rust

#69

Earlier quoted context omitted.

Something something lucky 10,000

For those not in the know, this is an xkcd reference: https://xkcd.com/1053/ It's a citation I want to give out surprisingly often.

Important to keep in mind the 10000 is in relation to the population of USA. On the scale of the whole world it's more like lucky 200000.

Re: Writing a winning 4K intro in Rust

#70
post #35
post #33

I love the demo scene, but the culture is kind of strange. Like I've been fooling around with the C64, and all the tools (emulators, debuggers, and etc) are hosted on source forge, or sometimes this random ftp. The author of the debugger I'm using proudly proclaims that he only works on it when he's fucked up on drugs after parties. The documentation of some tools has lewd ascii art, and etc etc. I appreciate the ant…

"On the one hand, I found a program that does exactly what we need. On the other hand, not-quite-dressed anime characters..." I've had this exact conversation with coworkers before.

I recently explained to someone in an interview that I chose Puppet over Ansible circa 2014 because by default, Ansible used to output success or failure messages using cowsay.
Post reply on HN