Readit News logoReadit News
huy-nguyen commented on Puppeteer Support for Firefox   hacks.mozilla.org/2024/08... · Posted by u/cpeterso
hugs · a year ago
Ranked #4 on HN at the moment and no comments. So I'll just say hi. (Selenium project creator here. I had nothing to do with this announcement, but feel free to ask me anything!)

My hot take on things: When the Puppeteer team left Google to join Microsoft and continue the project as Playwright, that left Google high and dry. I don't think Google truly realized how complementary a browser automation tool is to an AI-agent strategy. Similar to how they also fumbled the bag on transformer technology. (The T in GPT)... So Google had a choice, abandon Puppeteer and be dependent on MS/Playwright... or find a path forward for Puppeteer. WebDriver BiDi takes all the chocolatey goodness of the Chrome DevTools Protocol (CDP) that Puppeteer (and Playwright) are built on... and moves that forward in a standard way (building on the earlier success of the W3C WebDriver process that browser vendors and members of the Selenium project started years ago.)

Great to see there's still a market for cross-industry standards and collaboration with this announcement from Mozilla today.

huy-nguyen · a year ago
What’s the relationship between Selenium, Puppeteer and Webdriver BiDi? I’m a happy user of Playwright. Is there any reason why I should consider Selenium or Puppeteer?
huy-nguyen commented on Weather.gov 2.0   github.com/weather-gov/we... · Posted by u/KoftaBob
NelsonMinar · a year ago
Dumb question but is this 2.0 live somewhere I can use it or just source code in development?

I remember about 8 years ago there was an "experimental" site for one of the US government's aviation weather products. And it was so very good, designed modern and usable and clean. Didn't look at all like the usual awkward government website. The team seemed like nice folks too but were caught up in some multi-year government funding system. It eventually got shut down and IIRC, none of their work ever got promoted to the main site.

We are very lucky in the US to have a fantastic weather service and a mandate for their products to be free and public domain. Unfortunately there's also a lot of political pressure on them to not be too good so that some commercial company can profit. AccuWeather was one such company, at least back in 2005: https://www.onthecommons.org/privatizing-weather/index.html

huy-nguyen · a year ago
The README says they’re done with prototyping and are now building the MVP.
huy-nguyen commented on Learning Elm by porting a medium-sized web frontend from React (2019)   benhoyt.com/writings/lear... · Posted by u/Tomte
ISV_Damocles · 2 years ago
The year in this link is very important. In the following year, the Elm team decided to not pay attention to the maxim "perfect is the enemy of good" and crippled their FFI story, making it impossible to actually use the language in production[1].

I would recommend to steer clear of a language that makes these sorts of decisions -- that certain features are off-limits to the regular developer because they can't be trusted to use them correctly -- because if you find yourself in a situation where you need that to solve your problem, you're trapped. I included Go in the set of languages I would recommend steering clear of for years, due to their decision to allow their own `map` type be a generic[2] type but no user-defined types could be[3], leading to ridiculously over-verbose codebases, but they have finally corrected course there.

If you're looking for something kinda like Elm but not likely to break your own work in the future, I'd recommend checking out ReasonML[4] instead.

[1]: https://lukeplant.me.uk/blog/posts/why-im-leaving-elm/ [2]: https://go.dev/blog/maps [3]: https://go.dev/doc/faq#beginning_generics [4]: https://reasonml.github.io/

huy-nguyen · 2 years ago
If you’re a front-end developer, you should checkout ReScript[1], supposedly a JS-oriented successor of ReasonML and developed by the ReasonML team.

[1] https://rescript-lang.org/

huy-nguyen commented on Apple's Pro Display XDR takes Thunderbolt 3 to its limit   fabiensanglard.net/xdr/in... · Posted by u/WithinReason
huy-nguyen · 2 years ago
The article states the wrong resolution for the Apple display and it’s an interesting mistake because these days there are actually 2 versions of 6K in consumer-marketed computer monitors: the one used by the Apple display (6016x3384) and the slightly larger one used by the Dell U3224KB 6K that came out earlier this year (6144 x 3456). In fact, an interesting thing people found out when they use the Dell 6K display on Intel MacBook Pros running Mac OS between 10.15 and 13.6 is that the Mac cannot do Display Stream Compression at the Dell's native 6144 x 3456, hence the Mac can only drive the monitor at 30hz instead of 60hz. However, if they can fool the Mac into thinking the display is 6016x3384 (same as the Apple display), DSC magically works and they get 60hz on the Dell (at the expense of sacrificing some screen real estate). Apple must probably hardcode the 6016x3384 resolution somewhere in their OS code. Thankfully people report that this problem has been fixed as of Mac OS 14.1 but that bug existed for 4 years.

Edit: this problem only seems to happen on Intel, not Apple silicon machines.

huy-nguyen commented on Apple agrees to $25M settlement with US over hiring of immigrants   reuters.com/technology/ap... · Posted by u/mraza007
SuperNinKenDo · 2 years ago
That amount is an embarrassing joke. What's going on that's causing these appallingly low penalties for companies? Is it just that the legislation was written without these kinds of megacorps in mind? Is it trepidation on the part of regulators? Seriously, what is going on here?
huy-nguyen · 2 years ago
I think the real punishment for Apple is that it’ll be harder for their employees to get their PERMs certified i.e. more likely to be denied/audited (audit adds 5-6 months on top of the normal 10-11 months), which has been the case for Facebook since the same settlement with DOJ.
huy-nguyen commented on I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA    · Posted by u/proberts
huy-nguyen · 2 years ago
Hi Peter. 2 questions for you:

1) PERM processing time keeps getting longer and longer (now at 11 months, up from 5-6 months a few years ago). Do you know why or if DOL has any plans to improve it?

2) What’s the current average PERM-based I-485 processing time you’re seeing in your office? Any processing time advantage to submitting I-485 separately versus concurrently with I-140?

Thanks.

huy-nguyen commented on Yarn 4.0   yarnpkg.com/blog/release/... · Posted by u/winterqt
huy-nguyen · 2 years ago
I’ve been using the new yarn (with workspaces and Plug’n’Play) on a reasonably complex JS project for about 2 years and I think it works great. Congrats to the yarn team on this big release.

u/huy-nguyen

KarmaCake day669August 2, 2016
About
Software Engineer at the National Institute of Allergy and Infectious Diseases (NIAID). Tech blog at huy.dev. Email me@huy.dev.
View Original