Coder Social home page Coder Social logo

srijan-paul / gwion-benchmark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gwion/gwion-benchmark

0.0 0.0 0.0 13.68 MB

benchmark gwion against other languages

Gnuplot 3.53% Shell 8.93% ChucK 9.94% Dart 13.38% Lua 22.72% Python 20.42% Ruby 20.61% Haskell 0.46%

gwion-benchmark's Introduction

injuly

I like systems programming and functional languages. Professionally, I've worked on web servers, SPAs, compilers, static analyzers, and other miscellany.

Interests:

  • Game dev, compilers, type systems, databases.
  • Pixel art
  • Shin Honkaku
  • Functional programming

Microblog

A list of thoughts that aren't not elaborate enough to warrant a blog post, but interesting enough to be written down.

Click to read

1. CRT displays and retro shaders

I find it very interesting that video games today often try to emulate artifacts of the past that older developers would kill to get rid of. The CRT screen shader is one of them. I wrote one for one of my (now abandoned) side projects, and was happy with how it turned out. Here is an old GIF of the effect:

The above shader displays two of my favorite effects that nail the "retro" feel when done well:

  1. The CRT screen bend.
  2. Chromatic Abberation.

It also has a scanline effect, but that's off topic.

CRT screens would shoot a cathode ray that would traverse the screen row-by-row. If the screens weren't curved in shape, different points on the surface would be at different distances from the origin of the cathode ray, resulting in a distorted image. The screens had to be curved at very precise angles to perfectly offset the distortion.

Since It's getting pretty late in the night at the time of me writing this, I'll leave this great explanation on chromatic aberration by an underrated youtuber, Pixel Prophecy:

If you're wondering how it's implemented in the gif I showed above, I just offset the Red, Green, and Blue channels for every on-screen pixel. As for the scanlines, they're just periodically occuring horizontal lines timed with a sine wave.

gwion-benchmark's People

Contributors

actions-user avatar ell1e avatar fennecdjay avatar jason2605 avatar srijan-paul avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.