HNHacker News
TopNewBestAskShowJobs

yazaddaruvala

3,279 karma · joined May 31, 2013

submissionscomments
yazaddaruvala··on Former US SEC attorney: 'Get out of crypto platforms now'
> In Canada, PFOF is not allowed on Canadian listed securities,[5] so Canadian brokers charge commissions,[8] however, according to the current Canadian securities regulations, brokers can accept PFOF on non-Canadian listed securities.[9] It is also banned in the United Kingdom.[5][10] According to Euronext, European authorities have regulated payment for order flow, and the practice is allowed in a number of national jurisdictions across Europe.[11]

On the wiki page for PFOF

yazaddaruvala··on Former US SEC attorney: 'Get out of crypto platforms now'
I'm not pro crypto exchanges, but does the SEC really live up to this guy's promises?

> SEC registration establishes critical requirements that protect investors from individual risk and protect capital markets from global systemic risk. The requirements also make U.S. markets among the safest, most robust, most vibrant and most desirable marketplaces in the world.

Does he mean the requirements that continue to allow dark pools[0]?

or the ones that allow arbitrage (theft?) through low-latency order flow[1], prior to high-latency trade execution?

[0] https://en.wikipedia.org/wiki/Dark_pool

[1] https://en.wikipedia.org/wiki/Payment_for_order_flow

yazaddaruvala··on My total comp for creating GitHub Copilot
Its a synonym for "optimizing" or "playing the game perfectly".
yazaddaruvala··on LCD TVs won’t see any further development
Almost every phone can cast/screen mirror. Unless your Roku is really old it supports it.
yazaddaruvala··on Cement's future could be a combination of carbon capture and electrification
Fortunately the technology behind renewable energy and batteries is following an exponential growth function :)

At a minimum that means it is feasible for us to hit 83% over the next 30 years - if not the next 15.

yazaddaruvala··on Cement's future could be a combination of carbon capture and electrification
I understand why you feel demotivated by all of this negative discourse and constant speculation on better technology. That said,

> electric cars? No!

The Model Y was the best selling car[0] in the world in Q1! Isn't that a positive fact :)

Six Flags in California now has solar installed at 2 of its theme parks, offsetting 3000 homes worth of electricity! Isn't that a positive fact :)

There are many other stories like this, you just have to look :)

> So we will never have to actually do any of them.

I agree we can do more, but focus on these positive outcomes! Stuff IS happening and it is for the better!

[0] https://finance.yahoo.com/news/tesla-model-y-was-the-best-se...

[1] https://pv-magazine-usa.com/2023/04/25/six-flags-announces-s...

yazaddaruvala··on Reddit’s blackout protest is set to continue indefinitely
> Is it because reddit isn't profitable so relies on constant money supply from investors? Or is it something else

Roughly.. but more accurately even if they are profitable they are not profitable enough.

Its not just that Reddit (Twitter, Twitch[0], etc) needs the money, the investors likely also have loans that need to be repaid sooner-than-later (or just other places with better returns). As such there is a large push for higher short term profit, to get higher short term share price, to "diversify" some of their Reddit stock.

The reality is none of these people care about the long term of Reddit. They have effectively "pumped it", they now need a good way to quickly "dump it". I'm sure none of them have any explicit motivation to destroy Reddit's future cash flows in the process, but that long term health is definitely not their focus.

[0] Twitch as an Amazon subsidiary doesn't exactly fit this model. However, the execs within Amazon do have Profit targets to meet for their orgs. This directly reflects in their bonuses, size of orgs, etc. So likely a similar enough analog.

yazaddaruvala··on Japan’s government will not enforce copyrights on data used in AI training
> But it's pretty implausible that the process of learning wouldn't involve the brain having some representation of the thing it's learning, or wouldn't involve repeatedly "copying" that representation.

I think you can easily make a stronger statement:

We do know that art students spend many hours literally tracing other images in order to learn to draw. We do know that repetition is how the brain improves over time.

"Learn to draw better by copying." - https://www.adobe.com/creativecloud/illustration/discover/le...

Based on that, seems pretty clear to me that the other commenters here would agree (regardless what the brain does internally) that at a minimum, art students are violating copyright many, many, times in order to learn.

yazaddaruvala··on Japan’s government will not enforce copyrights on data used in AI training
> Drawing a copy of a copyrighted picture from memory, and then distributing that copy, would certainly normally be copyright infringement.

In US law, there is a nuance between Copyright and Trademark.

> Drawing a copy of a copyrighted picture from memory, and then distributing that copy

Would not necessarily be copyright infringement (it depends on a judge). For example, why Taylor Swift is able to re-record her music (the copyright is owned by a recording studio), as is, and can distribute the new version as "Taylor's Version" because she owns the copyright on the new version.

> (A logo may not be enough of a creative work to be copyrightable, but I assume that's not what you're getting at).

A logo is actually MORE protectable, through Trademark. Trademark is significantly MORE protected than Copyright.

In your example, if someone draws from memory a logo, they actually own the copyright, but it is still Trademark infringement and the trademark owner will be protected.

yazaddaruvala··on Japan’s government will not enforce copyrights on data used in AI training
> the training data provides value.

Copyright law doesn't protect "any provided value". Fair use specifically allows content creators to use copyright.

This can be for the purposes of parody, it can also be for the purposes of "reaction videos" or "commentary". The original content creators are NOT compensated for the value they helped create in a "reaction video".

https://arstechnica.com/tech-policy/2017/08/youtuber-court-b...

yazaddaruvala··on React is 10 years old
I'll try one last time:

> Sorry none of this makes any sense to me.

If you're not familiar with the MVC variants (MVVM, MVP, MVI, MOVE)[0][1] we should start there.

Next you should read through some common mistakes of Backbone.js like applications https://www.toptal.com/backbone-js/top-8-common-backbone-js-... and some criticisms of MVC on HackerNews in 2012[0].

Finally if you haven't before these talks, they are the ones that sold me on React:

- https://www.youtube.com/watch?v=-DX3vJiqxm4

- https://www.youtube.com/watch?v=DgVS-zXgMTk

- https://www.youtube.com/watch?v=nYkdrAPrdcw&t=203s

[0] https://medium.com/@pinarkocak/mvc-mvp-and-mvvm-design-patte...

[1] https://news.ycombinator.com/item?id=4189811

yazaddaruvala··on React is 10 years old
> By removing these arbitrary constraints htmx completes HTML as a hypertext

I agree, this is interesting. I even agree, htmx is probably a polyfill waiting for the browser standards to catch up.

That said, trying to make a markup language smart is a losing battle in the long-term. It makes simple things like `if` and `while` difficult. Markup also really struggles with time / interactivity.

e.g. What should be displayed when a form is invalid? https://htmx.org/docs/#validation-example is just not ergonomic even for a simple case, let alone complex validations that interact with other fields, are async, etc.

I get a allure of wanting "only a markup language", however, it just isn't enough to be competitive for 95% of web development these days. In a different response you say "if you're building the next Gmail, fine use React, but you don't need React for picking between 3 colors to order a shirt". This is true, but it is fundamentally lacking the realization that no company wants to end their feature set at 3 colors for a shirt. They "want" to build a foundation quickly, but then enhance it to be able to custom create the shirt for exactly your body sizes and allow interactive movement of the "logo" or "graphic" anywhere on the shirt. They want the validation to ensure the shirt can be printed, and they want to ensure their logistics network is dynamically updating the order history for live tracking of the package.

To get there, the best thing to do is to use React (or similar) even when it is "just 3 colors".

yazaddaruvala··on React is 10 years old
> There is no two-way data binding in use here, so you're wrong.

Cyclical data bindings and two-way data bindings are fundamentally different issues. Not knowing the difference makes it pretty clear you haven’t lived through a codebase that had these types of issues.

MVC seems great in sprit and breaks down at the first real interactive, stateful usecases.

> Do you think MVC is not suitable for multi-person teams? If so how do you explain MVC in …

Correct, I do not find MVC suitable for multi-person teams. You won’t believe me, but it is an incomplete abstraction that was previously relied on but since React and also modern video game engines it is no longer in favor.

Why is it still used by all those legacy frameworks? Because, frankly, they are old and haven’t evolved.

Apple has moved on from Cocoa to SwiftUI. Java devs have all but moved on from JSP (goodness those days were terrible). Rails for all its awesomeness has been stuck for years not able to move past itself and typically now paired with React or Vue.

MVC was a good stepping stone, but now we have learned and we are moving on!

yazaddaruvala··on React is 10 years old
Yes, aware. Its cool, but the ergonomics feel very much the way I felt about Node.js with callbacks.

There is a different type of delight that comes from the ergonomics on async/await. This is the big jump React Suspense also needs to make. I am not smart enough to suggest anything here tho. I just know the framework (including React) that can give me that async/await delight while using Suspense will dominate!

yazaddaruvala··on React is 10 years old
Got it thanks for the context.

I've read the web app and it seems to me it is just https://backbonejs.org/ re-written in Typescript and allows JSX.

I'm very certain Typescript and JSX will have improved the DX for Backbone like apps, but it doesn't address all of the other issues that teams had with Backbone.

e.g. Cyclical event propagation, state stored in the DOM (i.e. appendChild is error prone in large multi-person code bases), etc.

FWIW, the reason this works for eureka is highlighted best on this page: https://github.com/wisercoder/eureka/graphs/contributors there is only a single author!

yazaddaruvala··on React is 10 years old
To de-throne React, React would have to stop de-throning itself.

I do think the future of DOM based diffing is no longer going to use a Virtual DOM. Svelte has shown the way. It just has to be moved into React (or a React successor).

I also think the future of Components is to use async/await more. Where each await point is assigned a fallback component e.g. <Loading /> or something.

React also needs to figure out Hooks a bit better, and see if there is a missing language feature that can be pushed to simplify that concept.

If something (including React) is able to do those three things, while also keeping/improving the React DX (markup and logic together, uni-directional dataflow, hook like annotations that can interoperate with each other), it'll likely de-throne React.

yazaddaruvala··on React is 10 years old
> I don’t think direct DOM manipulation was ever a problem, if done thoughtfully.

Then you've never worked on a medium/large UI application (1k+ LOC), and most certainly couldn't have lived through the era of DOM manipulation!

jQuery when it first arrived was a god-send! but even the most thoughtful couldn't structure it right.

Backbone when it first arrived was a god-send! but even the most thoughtful couldn't structure it right.

React when it first arrived was a god-send! but even the most thoughtful still can't always structure it right.

With, the inclusion of so many other failed and semi-successful attempts throughout history I have no idea how you can possible claim:

> I don’t think direct DOM manipulation was ever a problem, if done thoughtfully.

without just being naive...

yazaddaruvala··on React is 10 years old
> As you know, Java and PHP are languages. React is just a framework,

Ok then, what about the Spring .xml to .java migration? What about the Struts -> Struts2 -> SpringMVC -> SpringWebapp migrations.

It seems an unfair criticism of React.

yazaddaruvala··on React is 10 years old
Sorry, I don't understand. Why is this a relevant link?

"Lucene based search" vs React ? Seems like comparing trees to tractors.

yazaddaruvala··on React is 10 years old
If you're a principal, you should be able to keep up with modern tools. Making sure the engineers around you are as productive as possible with their current tools and processes is literally your job!

If as a principal, you are no longer able to keep up with tooling / patterns that everyone else at your company wants to use, its time to take a smaller scope or time to retire.

The job, including mandates (if any are needed) is to empower the people you work with, not to stifle them.

yazaddaruvala··on React is 10 years old
> By the time Java 8 rolled around they definitely were "traditional".

Based on my experience only once CompletableFuture was added to Java did the Future interface really start getting used in mass. Before that, there were other libs that implemented Future like things (Rx, Guava, Netty, etc) but they were not adopted across the board.

The transition to Java 8 was night and day! Roughly on par with the React Hooks transition.

yazaddaruvala··on Google Cloud Workstations managed development environment is now GA
I just set up IntelliJ to use my remote workstation for LSP and Build and Test, but all of the text editing happens locally.

Specifically the files are also hosted remotely but the local text buffers are synced in the background not every keystroke.

yazaddaruvala··on What if we set GPT-4 free in Minecraft?
They don't explicitly talk about curriculum improvement based on negative reinforcement. It would be relatively straight forward to do tho.

Perform self-reflection every time damage is taken (the iterations of self-reflection can depend on % health lost). Something like "Please output as a list of general guidelines / best-practices that any Minecraft player can use in the future. For each guideline add a risk profile that is introduced if the guideline is neglected. Based on the following game log over the last 100 steps, what should the Minecraft player have done differently to avoid taking damage? \n <game log>"

And keep storing those guidelines over multiple iterations. If there start to become too many best-practices, ask GPT-4 to "Please output as a list of general guidelines / best-practices that any Minecraft player can use in the future. For each guideline add a risk profile that is introduced if the guideline is neglected. Take the guidelines below and summarize them. Prioritize retaining more detail about the guidelines with a higher risk profile, and do merge guidelines if possible and appropriate. \n <old guidelines>"

yazaddaruvala··on 90% of laid-off H1-B visa holders were able to find new work
> Until recently spouses of H1-B visa holders were not allowed to work (I don't think they should either).

FWIW, I disagree with this one point. I know a lot of partners of H1Bs and there is a large psychological toll to not being allowed to "contribute to society" if you are able and wanting to. There is also a large psychological toll to moving to a new country, a lot of America's adult friendships are created in the workplace. Finally there is a large psychological toll to not having independence in making some side money to be able to spend it the way you want (even if the money earner "gifts" that freedom - because why wouldn't they - there can be a guilt associated with using the money).

Therefore, I do think its overall worthwhile for partners of H1Bs to be allowed to work if they so choose.

That said, I do feel like the minimum household salary for getting an H1B should be high enough to compensate for potentially both people working in the US, in a way that helps uplift wages for US citizens. That might mean using p91 or p95, I'm not qualified to pick the exact value, but I do think the general strategy would be best for "the best and brightest" immigrant families(or individuals) and for citizens.

yazaddaruvala··on 90% of laid-off H1-B visa holders were able to find new work
The minimum salary really should be increased these days.

Given the current income percentiles in the US (https://dqydj.com/average-median-top-household-income-percen...). The current H1B min-salary is $60k, which is below the median household wage in the US.

The min-salary should instead be pegged to the p90, which is currently at $130k.

That way foreign workers (which includes myself and many friends) should absolutely be held to the highest standard and be the best and the brightest and pushing the bar higher for 90% of US citizens.

yazaddaruvala··on Thunderbird Is Thriving: Our 2022 Financial Report
I was just giving an example, you could just as easily run a KNN implementation locally.
yazaddaruvala··on Thunderbird Is Thriving: Our 2022 Financial Report
The really difficult parts about keyword search are tokenization, normalization, and synonym selection. Especially keeping them up to date. The uses of search never know about any of this, but as the developer these things need to be top of mind.

Using embeddings basically lets the AI configure those things for you and auto updates when the AI updates.

You could also use the embeddings for far more advanced things like in LLMs, but the basic version that is just “better keyword search” is also valuable.

> Not to mention being far slower to query.

KNN on the embeddings is not obviously slower to query. In production using AWS ElasticSearch, for a very large search index, my team saw no meaningful change to latency when using embeddings instead.

yazaddaruvala··on The grid isn’t ready for 300M EVs by 2030
Upgrading is only one way to achieve this.

The most likely solution is house battery backups attached to a virtual grid.

https://youtu.be/_UJiglrYgJY

yazaddaruvala··on Scaling up the Prime Video audio/video monitoring service and reducing costs
Context: I worked at Amazon Retail for 10 years.

Amazon Retail and AWS are the same legal entity for stocks, but other than that they might as well be separate companies.

Retail uses AWS with all the same APIs and quirks as any other company. The only thing different is the negotiation on price (which many large companies also do).

Meanwhile, AWS is apathetic towards feature requests from Retail, and especially operational support for Retail.

In many ways Retail would be better off if it was a separate company and could threaten AWS with a multi-cloud diversification play.

yazaddaruvala··on Millions snap up new Germany-wide public transit ticket
> but I don't think that affects the definition of a public good

You happen to be misconstruing the two definitions of "public good":

> a commodity or service that is provided without profit to all members of a society, either by the government or a private individual or organization.

> the benefit or well-being of the public.

As such, something can be a "public good" without being "a benefit".

[0] https://www.google.com/search?q=public+goods&si=AMnBZoHHbOut...

← PreviousPage 7 of 34Next →