Live data from Hacker News

Tinygrad

github.com

31–40 of 159 posts

Re: Tinygrad

#31
post #17

Earlier quoted context omitted.

Completely disagree - limiting lines of code as an ethos makes as much sense as using lines of code written as a business metric. What if they want to add a new feature that takes another ~1000 LoC? Can they just write it as a separate library and include it as a dependency? IMO trying to minimize LoC creates a perverse incentive to split up your package when it might not need it (in the same way maximizing LoC creat…

You say 1000 lines is an arbitrary number. Do you actually have a feature in mind that takes it above this artificial limit? Did you even read the code? They like this round number. Fork. Why argue.

It's how you get commits like these, though https://github.com/geohot/tinygrad/commit/050636bcb1068beff6...

  Subject: here's two extra lines of precious code (#307) 
  
  diff --git a/tinygrad/__init__.py b/tinygrad/__init__.py
  index 0deab3e9..31ac75d5 100644
  --- a/tinygrad/__init__.py
  +++ b/tinygrad/__init__.py
  @@ -1,3 +1 @@
  -import tinygrad.optim
  -import tinygrad.tensor
  -import tinygrad.nn
  +from tinygrad import optim, tensor, nn
There's a difference between "I will refuse features like X/Y/Z" and "I want the length of the code file to be N lines at most". The former tells you both explicitly and implicitly which features not to bother contributing. The latter is just nonsense.

Re: Tinygrad

#32
I find this related page more interesting: A Breakdown of AI Chip Companies https://geohot.github.io/blog/jekyll/update/2021/06/13/a-bre...

I especially like that he outlines an actual plan for an AI chip startup that he thinks will work, and has an update explaining why he was subsequently convinced that it wouldn't work.

Re: Tinygrad

#33
post #9

This is the guy that did some iOS jailbreaks, reverse engineered the PS3 and now runs a self driving car startup.

Not sure if it's a startup when it's profitable and not looking for investors.

Re: Tinygrad

#34
post #14

I like this guy mostly for preserving a hacker-ish culture in the atmosphere and for just being a real human being in public. Too often do I feel like I'm just interacting with interfaces to corporations or people who self censor themselves so much they barely feel human. I'm not sure this library matters much to me but I maintain positive perspective on this guy for these reasons.

It's crazy that his company (comma ai) and actions stick out so much. They're in the auto-driving space and they have a real product that you can buy today and use it for a better lane-assist and hook it up to most newish cars.

It's open source so you could run it on your own hardware for free.

You have a complaint or question? Just check out their discord where you can talk to engineers working there instead of some outsourced chat bot.

They just figured out the minimum you would have to do to control a car and are making incremental improvements with the insane business strategy of charging more than it takes for them to build it.

Oh and if you're a business executive and want to partner, you can schedule a 30 minute phone call with comma's VP of Business Development for $1,000!

Re: Tinygrad

#35
post #9

This is the guy that did some iOS jailbreaks, reverse engineered the PS3 and now runs a self driving car startup.

And the shady cheapETH business last year: https://oldreddit.com/r/cheapETH/comments/lkzkso/george_hotz...

Adding a comment as I don't think this is a fair representation of George. He livestreamed the creation of cheapETH as a technical demonstration of web3 development[0] and continually talks about it being worthless while developing it. He's also on record as being a serial 'no-coiner'.

[0] https://www.youtube.com/watch?v=9LaIezgiUmw

Re: Tinygrad

#36
post #14

I like this guy mostly for preserving a hacker-ish culture in the atmosphere and for just being a real human being in public. Too often do I feel like I'm just interacting with interfaces to corporations or people who self censor themselves so much they barely feel human. I'm not sure this library matters much to me but I maintain positive perspective on this guy for these reasons.

Having gone to college and knowing this guy personally from then, you would have a much different opinion... Maybe he has grown up, but back then... yeeesh

I cannot take this criticism seriously unless you are more specific than “yeesh.” If you aren’t willing to be specific then better to not say anything at all.

Re: Tinygrad

#37
post #17

Earlier quoted context omitted.

You say 1000 lines is an arbitrary number. Do you actually have a feature in mind that takes it above this artificial limit? Did you even read the code? They like this round number. Fork. Why argue.

It's how you get commits like these, though https://github.com/geohot/tinygrad/commit/050636bcb1068beff6... Subject: here's two extra lines of precious code (#307) diff --git a/tinygrad/__init__.py b/tinygrad/__init__.py index 0deab3e9..31ac75d5 100644 --- a/tinygrad/__init__.py +++ b/tinygrad/__init__.py @@ -1,3 +1 @@ -import tinygrad.optim -import tinygrad.tensor -import tinygrad.nn +from tinygrad import optim, ten…

This is why the good lord gave us: https://github.com/psf/black

Import line is actually improved with this commit. LGTM, ship it.

We now return to your regularly scheduled bikeshedding.

Re: Tinygrad

#38
post #14

I like this guy mostly for preserving a hacker-ish culture in the atmosphere and for just being a real human being in public. Too often do I feel like I'm just interacting with interfaces to corporations or people who self censor themselves so much they barely feel human. I'm not sure this library matters much to me but I maintain positive perspective on this guy for these reasons.

Having gone to college and knowing this guy personally from then, you would have a much different opinion... Maybe he has grown up, but back then... yeeesh

I mean, he's obviously not a normal guy. I don't know what you expect. From a recent profile:

> Apart from a criminal streak, Hotz shares with Raskolnikov, Dostoyevsky’s antihero, a predilection for instrumental reason and an urge to test his own mettle, to know himself by knowing his limits. As a young adult Hotz allowed himself to become addicted to prescription opiates almost as an experience in self-mastery. “I did it, I was addicted, and I quit,” he told me. “I think I had to have that experience. I don’t think I ever could have been the type who never tried it. Because in some ways I feel that if I’m not strong enough to defeat that and overcome it…” He paused for several beats before assuring me he’d never want anyone to follow his example. “In order to quit,” he continued, “it required me to rethink what I wanted out of life. After that, one of the biggest things that changed is I stopped caring about money.”

https://return.life/2022/03/07/george-hotz-comma-ride-or-die...

Re: Tinygrad

#39
post #2

>tinygrad will always be below 1000 lines. If it isn't, we will revert commits until tinygrad becomes smaller. Love this ethos so much. Wish more projects would follow suit.

Bonus challenge: total number of bytes monotonically decreases over time.

Re: Tinygrad

#40
post #23
post #22

Earlier quoted context omitted.

simplicity is a virtue. the project goal apparently isn't to have a lot of features, it's to do the core thing in the simplest way possible.

And if someone does some code golf to stay under the 1000 line limit rather than go to 1050 lines that’s an improvement?

Then the human responsible for approving the PR will decide whether it's worth it. Personally, I love it.
Post reply on HN