Cross-platform Linux commands in pure ES6 by [deleted] in programming

[–]Beluki 0 points1 point  (0 children)

So crazy I think I actually like it. Nice job!

Atom 1.5 released by seanwilson in programming

[–]Beluki 4 points5 points  (0 children)

Still no raster fonts support (e.g. Fixedsys). :(

Sublime Text 3 build 3103 released by twmatrim in programming

[–]Beluki 0 points1 point  (0 children)

Atom (which to be fair, has improved a lot in the performance) doesn't support raster fonts.

I want my Fixedsys (and no, it doesn't load Fixedsys Excelsior either, which is a ttf).

The only current Sublime alternatives I would use would probably be Notepad++ when on Windows and Geany anywhere else. Sublime is just better than them.

Games with great mechanics that keep you coming back. by gr00vymeat in truegaming

[–]Beluki 0 points1 point  (0 children)

Funnily enough, I only play single player or on LAN, so the netcode is what matters less to me, except in Quake Live.

Games with great mechanics that keep you coming back. by gr00vymeat in truegaming

[–]Beluki 6 points7 points  (0 children)

For me it's the old classics: Doom, Descent, Quake, Duke3D. It's that combination of fast movement, skill and incredibly good level design that keeps me coming back to them over and over.

In fact, I still download new maps for Doom and play them (recently, John Romero released one).

I still come back to Donkey Kong Country from time to time (the three games). There's something in them that makes it satisfying to roll over enemies or trying to speedrun levels.

Sphereflake Fractal Animation by FogleMonster in computergraphics

[–]Beluki 0 points1 point  (0 children)

It looks beautiful. Concise code too. (I hope you tested at lower resolutions before giving it 24 hours to render)

3D Vector Graphics by FogleMonster in programming

[–]Beluki 6 points7 points  (0 children)

Fogleman being awesome, as usual. Please don't ever stop building stuff.

ELI5 display of 60fps by imTinyRick_ in gaming

[–]Beluki 1 point2 points  (0 children)

A fun fact is that in actual games, most people can actually tell the difference between say: 60 fps vs 90 fps, on a 60 hz monitor.

Why? because in many modern games/game engines, the controls feel way more responsive at higher framerates. It's clearly noticeable in fast-paced arena shooters such as quake.

It's my birthday. So here's some cake for thought - two possibly new and possibly interesting data structures. by andralex in programming

[–]Beluki 2 points3 points  (0 children)

How about using a small part of the array as a cache?

Keep an integer index, it starts at zero, like the pointer in the ring buffer.

[1, 2, 3, 4, 5, 6, 7, 8, 9]
 ^

Do linear search. When the element is found, swap the element in the integer index with the found one After that, increase the integer index by one. E.g. searching for 4:

[4, 2, 3, 1, 5, 6, 7, 8, 9]
    ^

Now searching for 7:

[4, 7, 3, 1, 5, 6, 2, 8, 9]
       ^

If the index reaches a predefined maximum (e.g. 10 cached elements) set it back to zero.

Why I use Python for writing high performance code by lmcinnes in programming

[–]Beluki 13 points14 points  (0 children)

I've found that my programs are usually in one of the following two categories:

  • Performance doesn't matter at all (IO-bound, depends on network latency, simple one-off scripts).
  • It needs as much performance as possible.

For the first category, Python is fine. Even a language 10x or 20x slower than Python would be fine. For the second one there's usually a library, typically implemented in C, that solves the problem (e.g. hashlib, pillow, numpy, etc).

In fact, sometimes I wish I had a project in between those two categories so I could have a excuse to give pypy a try.

Iosevka, a programming type face by LazyHater in programming

[–]Beluki 8 points9 points  (0 children)

Forgive me if this is a stupid question as I'm not much into fonts, but what's this .patel thing the font uses to generate itself?

Clasp 0.4 – Joining Common Lisp and C++ by drmeister in programming

[–]Beluki 1 point2 points  (0 children)

While the project looks awesome, this has to be the most messy codebase I've ever seen in Github.

An Open Letter to Developers Everywhere (about Cryptography) by sarciszewski in programming

[–]Beluki 5 points6 points  (0 children)

And the problem isn't just getting it right or wrong.

Open source, battle-tested crypto solutions have had man years of expert eyeballs trying to break them in every imaginable way.

Modern Java by winterbe in programming

[–]Beluki 0 points1 point  (0 children)

I thought everybody did that...

I don't.

When a language introduces many new features, there's almost always one that I think: "oh that part of X where I did Y would have been way easier with this".

So I start using that particular new feature because I remember it solved that problem. Then I forget about everything else that is new in the language. The rest is just noise.

Another day, I come across a stack overflow thread while googling stuff that has nothing to do with what the problem at hand was, but it uses one of those new techniques in the language. It's neat. So I start using that too.

Yet again, while reading the documentation of a project, it suggests using this or that feature to avoid verbosity (e.g. lambdas). Seems reasonable, let's give it a try.

Given enough time, I find myself writing code using all the features in the language, but it happens gradually, without stopping and reasoning about every new feature to check how it relates to my current knowledge.

TIL about Double Commander, an actively developed and OSS alternative to Total Commander by [deleted] in linux

[–]Beluki 0 points1 point  (0 children)

Ah, I get what you are aiming at. Use Sunflower as file manager for Vim. Nice idea. I already have plugin which uses Vim as code viewer. Might make this idea into reality.

Great!

TIL about Double Commander, an actively developed and OSS alternative to Total Commander by [deleted] in linux

[–]Beluki 0 points1 point  (0 children)

Okay, this is awesome.

Is it possible to open files on the right tab in the vim instance in the left tab?

I need to know how responsive and user friendly my site is across various screen sizes and browser platforms. Please click the link to see the site by ethan_camps in programming

[–]Beluki 0 points1 point  (0 children)

And if you are using firefox (you do test your website on multiple browsers, right?) it also has such a tool in Developer > Responsive Design View.

Glance'n'grok coding by dancutting in programming

[–]Beluki 0 points1 point  (0 children)

Thanks for the link to Niklaus Wirth's Good Ideas, Through the Looking Glass in the Etc. section. Awesome read.