I see the advantage of the inline lambdas, but also it seems like it would hamper the ability to test the functions which can often have intricacies that catch you out. I believe one of the principles of Tinygrad is that tests shouldn't be part of the core codebase and shouldn't add to the total linecount.
I think there is an opportunity there to have a tag in comments for tests.
Have a hotkey to generate an id so you could have
# lift x+y out of reduce on lt :testID: color_adjective_noun
((UPat.var("x")+UPat.var("y")).or_casted() < UPat.var("c"), lambda x,y,c: (x < (c.cast(y.dtype)-y)) if no_range(y) and no_range(c) else None),
and it creates a test that exists away from the main codebase. A process that runs tests could scan the code for testID's, intelligently extract the relevant part of the code into the test harness and runs the tests. There would need to be some infrastructure needed to handle placing the code to be tested into the right context but you could have
1. A codebase that contained no active code required simply to facilitate tests,
2. All test tags auto removable for distribution builds
You don't really want or need classical unit tests for compilers. You need a harness that you can feed a program representation into and get a transformed one out, then check the result -- ideally mostly just by running it, or alternatively by comparing the output against a reference.
I agree. It is definitely readable but clearly formatting decisions were made to keep line count down over the flow of code. It isn't even just the variable names, things like having a function with a single return statement on one line, while legal, I cannot imagine why someone would do it in a non one off script code.
> I’m also sold on his take on "vibe coding" leading to ephemeral software; the idea of spinning up a custom, one-off tokenizer or app just to debug a single issue, and then deleting it, feels like a real shift.
We should keep in mind that currently our LLM use is subsidized. When the money dries up and we have to pay the real prices I’ll be interested to see if we can still consider whipping up one time apps as basically free
My guess is that “free” is meant in terms of the old definition where you’re not having to pay someone to create and maintain it. But yes, it’s important to realize there really is a cost here and one that can’t just be captured by a dollar amount.
Maybe the tables could be turned and we can build a service with dozens of subscriptions to every VPN detection service and report them for ToS violations ;)
This comment would be more useful if you have the name of the product or linked to it. I’m also not aware of this offering and wasn’t able to find information on it.
Do you have examples? If anything there have been cases of left aligned activist employees being fired from companies like Google not too long ago. Or cases like Basecamp where they asked people to avoid politics at work or leave the company.
Well he wrote a memo saying the women at Google were "neurotic" and that's why women biologically are predisposed to not be software engineers.
If that's conservative ideology, then I guess it is fair to say such ideology might not be appropriate for a workplace. In reality, he just said stupid stuff to be provocative, and tried to post-hoc justify it as vilifying conservatives instead.
> Movie, TV and Music production companies, as well as book publishers… were severely limiting free speech according to their own policies
We’ve been casually throwing around the phrase “free speech” so much that it seems to have lost its meaning. Free speech was never about guaranteeing anyone and everyone a platform and an audience. At least within the context of US law, it’s about expressing ideas without government persecution, with some limits.
It’s an important distinction because now it seems some people are less concerned about the government protecting these rights and more about making sure they can still host videos on Youtube.
How much free speech do you have in practice if you are not allowed to use the airwaves, the printing presses, or the recording equipment? You then have the free speech of the pre-industrial age, while others enjoy their free speech in the modern age.
No matter what, YouTube and social media enables more people to express themselves to an audience than ever before.
In practice, social media brings free speech to the modern mass society, in a way that was very lacking before.
I understand but language is a moving and changing target, I think businesses like YouTube having as much power as they do is extremely problematic. Maybe I don't mean regulation, maybe some kind of citizens assembly that can make recommendations and enforce creators rights against the powerful... could maybe call it a Union of Creators or potentially something shorter?
A big problem is that the Silicon Valley playbook drives companies like Discord to be winner take all. It’s hard to avoid using them, but then they require that give up sensitive documents. I shouldn’t have to choose between keeping sensitive documents private and being able to participate in most gaming communities. Some open source projects have also starting adopting Discord to manage their communities.
> Some open source projects have also starting adopting Discord to manage their communities.
And I've chosen not to engage with more than one such community because I'm not perpared even to give Discord my phone number, let alone any kind of ID document. Luckily there's nothing on Discord I care about that much, so I'm not having to make too difficult a choice. I totally get why most people won't take such a stand.
It simply can't use it because it does not use native UIs, but instead mimics them with its own rendering engine. This approach worked to some extent during the flat minimalist era, but now that Apple has added so many new animations and transitions, reproducing them all has become close to impossible.
At best, Flutter can implement some shaders for the glass'y look of the controls, but something as basic as the Liquid Glass tab bar would require a huge effort to replicate it inside Flutter, while in MAUI and RN it's an automatic update.
Not a single user cares about "native ui", it's only a debate among developers. Take the top 20 apps people are using, all of them use their own design system which isn't native.
Flutter will always have multiple advantages against React Native (and even Native toolkits themselves) in terms of upgradability, you can do 6 months of updates with only 30mins of work and make sure it 100% works everywhere.
The quality of the testing toolkit is also something which is still unmatched elsewhere and makes a big difference on the app reliability.
Classic HN comment with unapologetic statements. If Flutter were that good, it wouldn't have flatlined so fast after the initial hype a few years ago. I tried it last year, only to see rendering glitches in the sample project.
Not everything is related to tech, in my company for example, they picked React Native because they have the ability to tap into the front-end job market (or they think they do), certainly not for it's intrisic qualities.
Personally I've done a 50k+ line project in Flutter and I didn't hit any of these. There's been a few issues for sure but nowhere near what I experienced with React Native (and don't start me on native itself)
All those stats look great on paper, but a few months ago I checked job postings for different mobile frameworks, and Flutter listings were 2-3 times fewer than RN. Go on Indeed and see for yourself.
For a "28% of new iOS apps", the Flutter subreddit is a ghost town with regular "is it dying? should I pick RN?" posts. I just don't buy the numbers because I'm myself in a rather stagnant cross-platform ecosystem, so I know this vibe well.
If I ever leave .NET, no way I'd move to something like Flutter. Even Kotlin Multiplatform is more promising concept-wise. LLMs are changing cross-platform development and Flutter's strong sides are not that important anymore, while its weak sides are critical.
Rendering glitches may be due to completely new, lightweight rendering engine made from scratch, that has replaced Skia. Shoudn't be a problem when it matures a bit.
Haven’t been on a Tesla recently but I really disliked the navigation system of the one we rented a while back. Small buttons, and common settings buried in multiple menu layers. What I like about Apple CarPlay and Android auto is that the UI is pretty consistent because it’s driven by the device I have with me.
I’d suggest that’s just a case of what you’re used to. I never use CarPlay except when I get a rental and every time I use it there’s a learning curve to relearn how it works. Just like any new UI honestly. As for Tesla nav in particular, I can’t really think of any nav elements “buried” in the UI except disabling toll routes or something. But that’s a sub-menu on almost any nav software, so not unusual.
The thing that is not subjective though: the UI is responsive and the map data isn’t extremely outdated. Those are the two primary problems with “bad” nav implementations.
Also the reverse -- CarPlay knows where I have been, where I have searched, locations people have texted to me, locations in my calendar, etc. It's nice to not have to type in the address every time I want to go somewhere new.
Not quite as seamless, but for anything like that where you’re headed to a destination, you can always send the location to these various UIs. Tesla and Rivian support sending addresses to their cars via their apps (through the share functionality, so it’s basically 2 clicks).
For the calendar point, Tesla actually offers calendar integration and automatic navigation (if you enable it) to events that have locations near your current time. I don’t use it since my calendar isn’t heavily populated, but I could see that being super useful for certain people.
Its better than many alternatives, though. Try using built in nav in many cars. I tried using it in a Hyundai rental when CarPlay was having trouble connecting and it was so truly terrible. It was so unusable I spent the extra 10 mins just trying to fix my CarPlay connection.
reply