HNHacker News
TopNewBestAskShowJobs

chkas

851 karma · joined April 7, 2018

https://github.com/chkas
submissionscomments
chkas··on Show HN: Avoiding "if" makes Quicksort faster
That should give the same result.
chkas··on Show HN: Avoiding "if" makes Quicksort faster
You can take a look at this - it's fast even without vector operations, as long as you avoid the branches that are often predicted incorrectly.

https://easylang.online/blog/branchless

chkas··on RSA and Python
I made a similar tutorial for RSA and DH in Easylang—a learning and teaching programming language I developed myself. What makes things a bit difficult is that Easylang doesn't support big numbers.

https://easylang.online/apps/tut_publk.html

chkas··on Mandelbrot Set Explorer
This is mine in my programming language: https://easylang.online/apps/mandelbrot.html?v=hn1
chkas··on Relax while watching bouncing particles making connections when they get closer
The physics in the simulation was faulty, that should be better now. Of course there are less collisions in 3D than in 2D. And this catapulting of stars is also an artifact in the discrete computer simulation

https://tiki.li/run/#cod=fVPRbuMgEHznK0aqdGodxSW5S0+uSl/zEVF...

chkas··on Relax while watching bouncing particles making connections when they get closer
Did some experimenting with gravity, not sure how far the physics is correct, but looks okay

https://tiki.li/run/#cod=dVLbbuIwEH33Vxyp0gqKGhIktKVqeO1HIB5...

chkas··on Relax while watching bouncing particles making connections when they get closer
@design choices: The graphic primitives built into the language - this is not useful for a general purpose language - but in beginner language this is an important motivating factor.
chkas··on Relax while watching bouncing particles making connections when they get closer
The aim is to offer beginners a simple and interesting entry into programming. IMO there is an unoccupied niche for this between Scratch and Python. In the days of home computer BASIC, it was easier to learn programming - you switched on the computer and with a few lines of BASIC code you could magically create a nice sine wave on the screen. Nowadays, beginners are often overwhelmed by all the complexity.
chkas··on Relax while watching bouncing particles making connections when they get closer
It shouldn't be that complicated. I tried it once with gravity and without limits on the edges. The cluster of stars moved around in 2d space and stars were repeatedly catapulted out, which then disappeared. Maybe you need a super gravity (black hole) in the center to keep it stable.
chkas··on Relax while watching bouncing particles making connections when they get closer
Another one - small colliding balls

https://tiki.li/run/#cod=jVPBbtswDL3rKx5QYEgd2FWMDliWaIf+RpG...

chkas··on Relax while watching bouncing particles making connections when they get closer
https://easylang.online
chkas··on Relax while watching bouncing particles making connections when they get closer
Hello author here. I'm a little surprised to see this on the front page of Hacker News. This is just a simple demo for my educational programming language Easylang. You can easily edit the code and increase the particle count for example. In the IDE you can then create a link with the code embedded in the URL.

https://tiki.li/run/#cod=dVLNbsIwDL7nKT5p0gRDdEGMA9PYM+yO0FT...

chkas··on SDL-based Lua programming environment for kids similar to Codea
Another programming environment for kids with its own simple programming language: https://easylang.online/ide/
chkas··on The Physics of Colliding Balls
I have programmed a small simulation of colliding balls in 2D.

https://easylang.online/show/#cod=jVPbbptAEH3frzhSpMqJFYppI0...

chkas··on Show HN: Programming Is Easier Than Most People Think
Not Logo - but BASIC.
chkas··on Show HN: Programming Is Easier Than Most People Think
Maybe a help window where you can select commands like "background" would be helpful.
chkas··on Show HN: Programming Is Easier Than Most People Think
Thanks for the suggestion - my native language is not English.
chkas··on Show HN: Programming Is Easier Than Most People Think
First JavaScript, now WebAssembly - the world keeps on moving.
chkas··on Show HN: Programming Is Easier Than Most People Think
Python is very powerful and can therefore be quite complicated and has some pitfalls for beginners.
chkas··on Show HN: Programming Is Easier Than Most People Think
If you need more colors, you can use "color3 r g b", where the values range from 0 to 1.
chkas··on AES-GCM and breaking it on nonce reuse
I find the article a little confusing. IMHO the point is that you must NEVER reuse an XOR key sequence for stream cipher encryption. With RC4, this meant that you could never use the same key. With modern stream ciphers there is the nonce for this - the CTR mode of a block cipher is also a stream cipher. (GCM mode is just an extension of CTR mode for authentication).

I've put together a little online demo tutorial (in my teaching and learning programming language).

https://easylang.online/apps/tut_cipher.html?v=2405e

chkas··on Show HN: Programming is easier than you think
Today's computers no longer boot into BBC BASIC - the barriers to entry have become higher.

A Lisp-like language would be easier to implement than a BASIC-like one - but is probably too unfamiliar for beginners.

Update: I have read through your post again. Yes, macros or basic functions can make a lot of things easier for beginners - I once did something like that with Java. But the language and especially the environment is still not beginner-friendly, for example when the first confusing error messages appear.

chkas··on Show HN: Programming is easier than you think
Thanks, you're great. I wouldn't have noticed that in a hundred years.
chkas··on Show HN: Programming is easier than you think
That was stupid of me - I should have also added a URL parameter to the embedded pages.
chkas··on Show HN: Programming is easier than you think
Thank you for your time and effort. The browser cache can really drive one nuts. I assumed that the URL parameter would force a new request.
chkas··on Show HN: Programming is easier than you think
I suspect that the browser still has the old page saved in the cache. Can you please check this again? The browser should load the current version with this link.

https://easylang.dev/apps/tut_learn.html?v2

chkas··on Show HN: Programming is easier than you think
I think it's more intuitive this way. When you draw a rectangle, you start with a corner point and then draw the width and height. With a circle, you go to the center and then draw it with a radius.
chkas··on Show HN: Programming is easier than you think
Thank you very much for this feedback. On the desktop and under IOS there is the Enter key, on Android there is really only this Next key - weird. I'll have to sort it out.

Update: Now there should be an Enter key instead of the Next key.

chkas··on Show HN: Programming is easier than you think
Are you sure? On a mobile device, it's easy to overlook pressing the enter key. Unfortunately, I can't do it much differently because, as far as I know, you can't reliably detect when the on-screen keyboard is closed.
chkas··on Show HN: Programming is easier than you think
You can start the program also with Ctrl+R or with Shift+Enter.
Page 1 of 6Next →