chkas
Re:Show HN: Avoiding "if" makes Quicksort faster
on Thursday May 07, 2026 @10:40AM (#48050055)
That should give the same result.
Re:Show HN: Avoiding "if" makes Quicksort faster
on Thursday May 07, 2026 @10:39AM (#48050037)
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.
Re:RSA and Python
on Saturday March 28, 2026 @04:12PM (#47557793)
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.
Re:Mandelbrot Set Explorer
on Sunday March 16, 2025 @04:27AM (#43377604)
This is mine in my programming language: https://easylang.online/apps/mandelbrot.html?v=hn1
Re:Relax while watching bouncing particles making connections when the...
on Monday January 13, 2025 @06:25PM (#42690986)
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...
Biocubes – A Visualization of Everything on Earth
Re:Relax while watching bouncing particles making connections when the...
on Saturday January 11, 2025 @07:25PM (#42670099)
Did some experimenting with gravity, not sure how far the physics is correct, but looks okay
https://tiki.li/run/#cod=dVLbbuIwEH33Vxyp0gqKGhIktKVqeO1HIB5...
The IAC discovers a planetary nebula that destroyed its solar system
Re:Relax while watching bouncing particles making connections when the...
on Friday January 10, 2025 @05:49AM (#42654539)
@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.
Re:Relax while watching bouncing particles making connections when the...
on Friday January 10, 2025 @05:29AM (#42654433)
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.
Re:Relax while watching bouncing particles making connections when the...
on Friday January 10, 2025 @03:09AM (#42653671)
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.
Re:Relax while watching bouncing particles making connections when the...
on Friday January 10, 2025 @02:51AM (#42653572)
Another one - small colliding balls
https://tiki.li/run/#cod=jVPBbtswDL3rKx5QYEgd2FWMDliWaIf+RpG...
Re:Relax while watching bouncing particles making connections when the...
on Thursday January 09, 2025 @02:37PM (#42649095)
Re:Relax while watching bouncing particles making connections when the...
on Thursday January 09, 2025 @02:22PM (#42648971)
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...
Biocubes: A visual representation of biomass and technomass
Advent of Code analysis through the years
An ad-free QR code generator and the handy JavaScript library that comes with it
Re:Antirez/load81: SDL based Lua programming environment for kids simi...
on Sunday October 27, 2024 @01:58PM (#41964329)
Another programming environment for kids with its own simple programming language: https://easylang.online/ide/
Re:The Physics of Colliding Balls
on Monday September 30, 2024 @04:30PM (#41701753)
I have programmed a small simulation of colliding balls in 2D.
https://easylang.online/show/#cod=jVPbbptAEH3frzhSpMqJFYppI0...
Re:Show HN: Programming Is Easier Than Most People Think
on Monday July 01, 2024 @02:44PM (#40848975)
Not Logo - but BASIC.
Re:Show HN: Programming Is Easier Than Most People Think
on Monday July 01, 2024 @02:09PM (#40848539)
Maybe a help window where you can select commands like "background" would be helpful.
Re:Show HN: Programming Is Easier Than Most People Think
on Monday July 01, 2024 @01:39PM (#40848177)
Thanks for the suggestion - my native language is not English.
Re:Show HN: Programming Is Easier Than Most People Think
on Monday July 01, 2024 @01:37PM (#40848148)
First JavaScript, now WebAssembly - the world keeps on moving.
Re:Show HN: Programming Is Easier Than Most People Think
on Monday July 01, 2024 @01:35PM (#40848130)
Python is very powerful and can therefore be quite complicated and has some pitfalls for beginners.
Re:Show HN: Programming Is Easier Than Most People Think
on Monday July 01, 2024 @01:32PM (#40848099)
If you need more colors, you can use "color3 r g b", where the values range from 0 to 1.
Show HN: Programming Is Easier Than Most People Think
Re:AES-GCM and breaking it on nonce reuse
on Wednesday June 12, 2024 @12:37PM (#40660068)
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).