Better HN
topnewbestaskshowjobs
Log inSign up

hardmath123

1,692 karma · joined Jul 18, 2014 (12y ago) · 271 submissions

Submissions

comment 1y ago · link · parent

Here's another blog post on this theme! https://github.com/kach/art-deco/blob/main/art-deco.ipynb

comment 2y ago · link · parent

Re: Low FPS webcam - here's an approach that attempts to analyze coin tossing data from the _sound_ rather than the _video_, since sound is typically recorded at a much higher sampling rate (high enough to "hear" the spinning of the coin). https://cs.stanford.edu/~kach/can-one-hear-the-fate-of-a-coi...

comment 2y ago · link · parent

Relatedly: The Second Eigenvector of the Google Matrix

https://nlp.stanford.edu/pubs/secondeigenvalue.pdf

4.

A Transformer Quine that generates a lossy copy of its own weights(twitter.com ↗)

1 points · by hardmath123 · 2y ago · discuss

comment 2y ago · link · parent

A lot of replies here are missing the key idea behind Penrose: that the "substance" and "style" of any mathematical diagram are separable. For example, the "substance" of a diagram might be a collection of sets with known subset relationships:

Set A, B, C

IsSubset(B, A)

IsSubset(C, A)

That same substance can then be rendered in many different styles, e.g. as a Venn diagram or as a tree diagram (substance vs. style is a lot like HTML vs. CSS). Importantly, Penrose's vision is that experts will author libraries of domains and styles, and end-users need only express the substance of their diagrams (i.e. the three lines of code above).

The second beautiful idea in Penrose is that diagram generation is expressed as a constrained optimization problem. This lets you easily experiment with layouts by writing constraints and sampling a variety of potential diagrams via stochastic search.

These two ideas set Penrose apart from most other diagram software out there. I really hope it gains wider adoption. Give it a try!

6.

Gradient Descent: The Ultimate Optimizer(arxiv.org ↗)

6 points · by hardmath123 · 4y ago · 1 comment

7.

Designing Perceptual Puzzles by Differentiating Probabilistic Programs(arxiv.org ↗)

1 points · by hardmath123 · 4y ago · discuss

comment 4y ago · link · parent

I was inspired by this Rest of World post https://restofworld.org/2022/wordle-viral-turkish-japanese-t... to make a Hindi-language "Wordle" https://kach.github.io/shabdle/ just for fun. It was a little tricky figuring out how to adapt the game for Hindi's script, but I'm quite happy with my solution of using U+25CC ("dotted circle") to mark missing consonants.

9.

Show HN: Shabdle Is Wordle in Hindi(kach.github.io ↗)

1 points · by hardmath123 · 4y ago · 1 comment

10.

Searching for Playtronics(web.archive.org ↗)

1 points · by hardmath123 · 4y ago · discuss

11.

Finding a Horseshoe on the Beaches of Rio [pdf](cityu.edu.hk ↗)

1 points · by hardmath123 · 4y ago · discuss

comment 4y ago · link · parent

Indeed, you can "learn" (by gradient descent) new parameters to this algorithm, to generate fractals in any target shape that you want! https://hardmath123.github.io/chaos-game-fractal-foliage.htm...

comment 4y ago · link · parent

This reminds me of a small experiment I did with a friend, where we asked different people to independently write the HTML and CSS for a website (without communicating), and then put the HTML and CSS files together to see how well they worked. https://kach.github.io/generative-adversarial-web-developmen...

14.

PeLU: Porcelain-Emulated Linear Unit(hardmath123.github.io ↗)

3 points · by hardmath123 · 4y ago · 1 comment

15.

Teacup Twists and impossible braids [pdf](jamestanton.com ↗)

1 points · by hardmath123 · 5y ago · discuss

comment 5y ago · link · parent

You might also like this little book, "Computational Cooking," which is also, in a way, a meditation on the language of recipes. http://diyhpl.us/~bryan/papers2/CompCook.html

17.

Scribomechanica(scribomechanica.weebly.com ↗)

1 points · by hardmath123 · 5y ago · discuss

18.

Seeking Pencils(pencilpages.com ↗)

3 points · by hardmath123 · 5y ago · 1 comment

comment 5y ago · link · parent

If you liked this, you might enjoy this little trick you can do with moiré patterns -- near the end of the post, I talk a little bit about the math behind the FFT connection. https://hardmath123.github.io/moire.html

comment 5y ago · link · parent

I don't know about "practical," but you might enjoy this: https://github.com/kach/recreational-rosette

comment 5y ago · link · parent

See also: "Words that do Handstands" (2019), where similar tricks are used to hallucinate an ambigram font!

https://news.ycombinator.com/item?id=20820036

http://hardmath123.github.io/ambigrams.html

22.

Generative Adversarial Web Development(kach.github.io ↗)

10 points · by hardmath123 · 5y ago · 3 comments

comment 5y ago · link · parent

You might also like the nearley playground, which lets you write a grammar in BNF and see all possible parsings of an input. You can even press a button and generate a random string that matches your grammar! https://omrelli.ug/nearley-playground/

comment 5y ago · link · parent

See also, a post from mid-2020 that does something similar with a "softened" Life: http://hardmath123.github.io/conways-gradient.html

comment 5y ago · link · parent

Similar post from mid-2020, using PyTorch instead of JAX, and using a "continuous" (gradient-based) hill-climbing: http://hardmath123.github.io/conways-gradient.html

And the HN discussion from the time: https://news.ycombinator.com/item?id=23095190

comment 5y ago · link · parent

Relatedly: Can one hear the fate of a coin? https://cs.stanford.edu/~kach/can-one-hear-the-fate-of-a-coi...

comment 5y ago · link · parent

Parsers in nearley.js [1] are written in a very readable EBNF-like DSL; then they get desugared down to a JS file that's a lot like your snippet.

[1] https://github.com/kach/nearley

comment 5y ago · link · parent

You might like Frink! https://frinklang.org
12345
10