HNHacker News
TopNewBestAskShowJobs

alex_smart

1,323 karma · joined April 30, 2014

submissionscomments
alex_smart··on ChatGPT Atlas
> Browser memories let ChatGPT remember useful details from your web browsing to provide better responses and suggestions, while maintaining privacy and user control. Users can opt-in during setup or in Settings > Personalization > Reference browser memories.

> As you browse in Atlas, web content is summarized on our servers. We apply safety and sensitive data filters that are designed to keep out personally identifiable information (like government IDs, SSNs, bank account numbers, online credentials, account recovery content, and addresses), and private data like medical records and financial information. We block summaries altogether on certain sensitive websites (like adult sites).

So the actual content of every page you visit is sent to ChatGPT servers. That is WAY more invasive than anything Chrome does afaik.

alex_smart··on We saved $500k per year by rolling our own "S3"
From the article, individual video segments were 2-6 MB in size and SQS and Kinesis have a 1MB limit for individual records so they couldn’t have used either service directly. At least not without breaking their segments into even smaller chunks.
alex_smart··on Scripts I wrote that I use all the time
It's an omz thing.
alex_smart··on Rating 26 years of Java changes
So goalpost moved from “libraries can solve visibility problem with package level visibility” to “libraries should not try to solve the visibility problem because it is not even a problem at all”?
alex_smart··on Rating 26 years of Java changes
Compare with the functionality offered by async job systems of other full stack frameworks - eg django with celery and rails with solid-queue. It’s not even close.

I am on the latest version of Spring Boot.

alex_smart··on Rating 26 years of Java changes
> Many libraries can solve visibility problem with package level visibility

The only way of doing this would be to put all classes in the same package. Any nontrivial library would have hundreds of classes. How is that a practical solution?

alex_smart··on Rating 26 years of Java changes
I was making exactly the point that you can use your own libraries along with a batteries included framework like Spring Boot.

I don't even understand what the source of confusion is. I literally said exactly the same thing in the comment you first you replied to.

alex_smart··on Rating 26 years of Java changes
> you did start this with writing your own

I really did not. I only said that if you were to create your own cronService, you can reuse it by creating your library rather than copy pasting code (which is obviously insane).

> which is about as insane as writing your own database driver

No, it is not. Spring Boot’s support for async jobs and scheduled jobs is lacking. A lot of people roll their own. Including yours truly.

It is also much easier than writing a database driver so there is that.

alex_smart··on Rating 26 years of Java changes
> Why are you assuming you cannot write your own library and use it with Spring?

I am not. I am literally saying the exact opposite.

alex_smart··on Rating 26 years of Java changes
I have a company with ~20 developers only. And already I have an ArchUnit test stating that public classes within "com.companyname.module.somepackage.internal" cannot be used anywhere outside "com.companyname.module.somepackage".

Surely almost everyone who has worked in a large enough codebase and thought about large-scale modularity can see the use case for a unit of abstraction in java higher than a package?

alex_smart··on Rating 26 years of Java changes
>Directly or indirectly many (or most) projects ended up depending on something which was using an unsupported backdoor API because it provided a marginally useful capability. The module system restricted access to these APIs and everything stopped working, unless you added some magic command line arguments to gain access again.

Is it even theoretically possible for a project like this to not run into these kind of issues? Like literally the project's goal is to enable library authors to be more explicit about their public API. So breaking use cases that use unsupported backdoor APIs very much seems like a predictable and expected result?

alex_smart··on Rating 26 years of Java changes
The use case for modules is to have a unit of organizing code (deciding what is visible and accessible to who) at a higher level of abstraction than a package. It allows library authors to be much more explicit about what is the public API of their library.

Ever wrote "List" in Intellij and instead of importing "java.util.List" Intellij prompts you to choose between like twenty different options from all the libraries you have included in your classpath that have implemented a public class named "List"? Most likely 90% of the libraries did not even want to expose their internal "List" class to the world like that but they got leaked into your classpath just because java didn't have a way to limit visibility of classes beyond packages.

alex_smart··on Rating 26 years of Java changes
All this because I told one guy who asked "what exactly is “cronService”? you write in each service or copy/paste each time you need it?" that they can reuse code by writing a library instead of copy/pasting it?

If this is the level of incompetence encouraged by a framework, I would avoid using it just to avoid the chance of hiring people like you.

Just kidding. Spring boot is great. But yeah, I would fire people with this attitude without blinking an eye.

alex_smart··on Rating 26 years of Java changes
What if I told you - you can use a batteries-included framework, and still write your own libraries specifically only for things you want your own version of and want to share across projects?

The problem isn't that I don't know how to use a batteries included framework. The problem is that you guys don't know there is even an option to reuse your code by writing libraries.

alex_smart··on Rating 26 years of Java changes
Why would I write my own database driver or encryption just because I wanted to implement my own "cronService"?
alex_smart··on Rating 26 years of Java changes
Why so much hate for modules? They seem to be almost universally disliked by everyone on this thread and I don't understand why.
alex_smart··on Rating 26 years of Java changes
You can write your own libraries?

My goodness. What a question!

alex_smart··on U.S. Emissions Rise 4.2%, China's Fall 2.7%
If you think that that is going to stop the people in China and India from wanting to increase their standard of livings, that is beyond delusional.

And did I read the article’s headline wrong or isn’t the article about China actually decreasing their absolute emissions.

alex_smart··on Use Your Type System
Sure
alex_smart··on Use Your Type System
>you probably don't want "throws SQLException" polluting the type signature all the way up the call stack

A problem easily solved by writing business logic in pure java code without any IO and handling the exceptions gracefully at the boundary.

alex_smart··on Use Your Type System
Ok please help me understand, what is the difference between - R method() throws L, and - Either<L, R> method()

To me they seem completely isomorphic?

alex_smart··on Andrew Ng: Building Faster with AI [video]
Also very much alive and called that in the Java/Spring ecosystem
alex_smart··on Can we test it? Yes, was can [video]
But testing by human is expensive
alex_smart··on Memory safety is table stakes
> performance above all — has touched every generation of programmers

I find it hard to reconcile this with the actual observed trend of all software getting slower and more memory intensive over time

alex_smart··on The Windows Subsystem for Linux is now open source
Better than buying a new but crap product for sure?
alex_smart··on The Windows Subsystem for Linux is now open source
What Apple hardware tax? The macbook air is the best value laptop there is. If the latest version is out of the budget, you can buy older generations used. Even m1 air would be better than any windows laptop at a comparable price point.
alex_smart··on The Windows Subsystem for Linux is now open source
>many results, including https://www.lenovo.com/us/en/d/linux-laptops-desktops/

Many results, including a US-specific page of the Lenovo website.

>If buying with Linux is not an option at your place, you can always buy one of the many models found with this search without OS and install it yourself.

>Finding out which laptops are sold with Linux somewhere should not be rocket science.

It should not. Given the amount of time I have already spent on trying to find one, it is fair to say that there are none easily available in India, at least in the consumer laptop market.

> I understand that it can be a dealbreaker for some, but that's a minor issue for me on laptops

Stockholm syndrome.

alex_smart··on The Windows Subsystem for Linux is now open source
> You first option is to buy a laptop with linux preinstalled

I have earnestly tried for >20 minutes trying to find such a laptop with any reputed manufacturer in my country (India) and come up empty-handed. Please suggest any that you can find. Even with Thinkpads, the only options are "Windows" or "No Operating System".

>Your second best bet is to read tech reviews.

Which tech reviews specifically point out linux support?

>Playing regular videos worked, and you can always lower the quality if your situation doesn't allow the higher qualities

The issue was never about whether playing the video worked. CPU video decoding uses much more energy and leads to your laptop running hot and draining battery life.

Can we at least agree to reduce the timeframe for things working flawlessly to "less than two years" instead of "a decade"? Yes you were able to go to the toilet downstairs but the toilet upstairs was definitely broken.

alex_smart··on The Windows Subsystem for Linux is now open source
As a buyer, how am I supposed to know which manufacturer did their homework and on which laptops?

> it's been like this for a decade

Again, depends on the definition of "flawlessly". Afaik, support for hardware accelerated videoplayback on browsers was broken across the board only three years ago.

alex_smart··on The Windows Subsystem for Linux is now open source
Issues reported:

Link 1: screen only updating every 2 seconds, visual glitches. Link 2: brightness reset to full on screen unlock, fans turning on when charging. Link 3: bluetooth troubles, speakers cant be muted if headphone jack is on mute. Link 4: audio quality and low volume, wifi not coming back after sleeping. Link 5: fans being too loud, poor sound quality.

Either your Stockholm syndrome is affecting your reading comprehension or you just take bugs like these as part of the normal "working perfectly" linux experience.

← PreviousPage 2 of 19Next →