HNHacker News
TopNewBestAskShowJobs

tripdout

1,419 karma · joined January 23, 2023

submissionscomments
tripdout··on Android and RISC-V: What you need to know to be ready
Sidenote, but when I learned of the new AOSP emulator, for some reason I thought that to use the Cuttlefish emulator (as opposed to Goldfish) with AOSP, you needed to run `acloud`, which refused to run unless I was on Ubuntu. I tried the LD_PRELOAD hack where you can replace the `uname` function output, but then it started trying to run dpkg (I use NixOS).

The old emulator is a real pain to get working, and the new one comes with many benefits.

Somehow I never knew you could just run `launch_cvd` manually.

tripdout··on NixOS Reproducible Builds: minimal ISO successfully independently rebuilt
In that case, you can report the Git SHA and still be reproducible.
tripdout··on Linear Algebra Done Right – 4th Edition
Wow, we used this textbook (albeit alongside a more beginner focused one) in first year undergrad Computer Science.
tripdout··on Nix Survival Mode: macOS upgrades won't break Nix anymore
There is a Nix VScode plugin
tripdout··on Microsoft now thirstily injects a poll when you download Google Chrome
Yes.
tripdout··on Google's iron grip on Android: Controlling open source by any means necessary
Couldn't fit in the title, but the original article is from 2013, with updates in 2018.

I always revisit this article from time to time, and I think it presents a more honest view on how open source Android really is.

There's an interesting balance between OS features being part of the platform vs part of Google Play Services. On one hand, platform code is less easily updated, but it can be fully open source. On the other hand, Google Play Services can be easily updated through the Play Store, but we're now locked into a closed-source, proprietary platform - especially when more and more features move into Google Play Services. (Barebones AOSP isn't useable by any realistic standards, and Pixel devices have a large number of Pixel-only features that people just start considering "stock Android". At this point, Pixel is a skin on top of AOSP.)

However, there's an interesting "best of both worlds" solution: Google's Project Mainline modules - they're easily updateable, and open source. But Google benefits from keeping features closed source, locking you into their ecosystem - so it's not like they're going to use these for anything more than lower level framework components as opposed to user-facing features. The full list is here: [0]

0: https://source.android.com/docs/core/ota/modular-system#avai...

tripdout··on Android AOSP Leader Quits over Binary GPU Drivers (2013)
Here we are a decade later, and the number of proprietary blobs needed to boot a device, without even mentioning what's needed to have working encryption support, camera, etc. is only getting bigger.

Google's own devices need 400Mb of proprietary binaries to work at all with AOSP: https://source.android.com/docs/setup/download/downloading#o...

tripdout··on The iOS option to charge battery to "80% Limit" shouldn't just be for iPhone 15
Going from 85%-25% instead of 100%-25% can increase the capacity by ~25%: https://batteryuniversity.com/img/content/capacity-retention... [0]

https://batteryuniversity.com/article/bu-808-how-to-prolong-...

tripdout··on Ask HN: Is anyone using cloud dev environments (e.g. Codespaces/Replit) at work?
I thought Parsec didn't have a Linux host application?
tripdout··on Ask HN: Is anyone using cloud dev environments (e.g. Codespaces/Replit) at work?
Intellij Ultimate edition costs more than the server at this point. Wish they'd bring this over to Community and Android Studio.
tripdout··on Ask HN: Is anyone using cloud dev environments (e.g. Codespaces/Replit) at work?
Too bad Intellij requires the Ultimate version of their software to use their equivalent of the VScode server/client feature.
tripdout··on Ask HN: Does anyone use a laptop as a thin client for programming?
From what I can tell, Kasm seems to be an application-streaming solution through a web browser?

If the latency is low and the quality is good enough to comfortably run an IDE like Android Studio (which is heavier than VSCode, but if the whole things being streamed it shouldn't matter), this looks like it could be a good solution, thanks.

tripdout··on Ask HN: Does anyone use a laptop as a thin client for programming?
Wireguard is just for a peer-to-peer VPN connection between the two machines, right? You'd still need a remote desktop client that has low enough latency to feel "local", and I'm not sure if that's at that stage yet?

With the apparent popularity of game streaming, it feels like it should be doable, but I'm not sure if WiFi is recommended for that.

tripdout··on Ask HN: Does anyone use a laptop as a thin client for programming?
Thanks, I'll see if I can find that thead. Yeah, that's the main roadblock. Lightweight IDEs like VSCode can easily run on cheaper laptops, and as long as the compilation is done remotely, you're good to go.

But the Android Studio IDE itself is fairly heavy, and the compilation process is "ongoing" as you're writing code, with UI previews and things like that. It's not clear if there's an easy, free way to offload all of this processing from your local machine.

tripdout··on ECC RAM on AMD Ryzen 7000 Desktop CPUs
Looking to get an ASRock B650 Pro RS to go with a 7700X, hopefully ECC will be supported.
tripdout··on Pkgx – “Run anything” from the creator of brew
So it's similar to some features of Nix (namely the nix run command)
tripdout··on Pkgx – “Run anything” from the creator of brew
Or even better, install it using the installer from Determinate Systems.
tripdout··on What every software developer must know about Unicode in 2023
Can there be overlaps between fonts in the private use area?
tripdout··on Function Composition in Programming Languages [video]
How do you start to learn a language like this? Are there any good resources for example leetcode-type problems to solve with Uiua?
tripdout··on Exploring Linux command-line space time
Can you explain the AOSP compilation time? I don't understand how it can be 8 minutes - was that a clean build?
tripdout··on Ask HN: Android low latency audio in 2023
The last edit to Devices.md is from October 2018.
tripdout··on Ditch That Else
This is good advice - I wish there was another article talking about when your error handling isn't as simple as just hitting one path of an if-else. But I guess that would be a specific article on error handling.
tripdout··on Android 14 adds support for using your smartphone as a webcam
The SafetyNet Fix module. I believe kdrag0n is the original author, but there's a popular fork on GitHub with some fixes - if you Google it you should be able to find it.

It tricks apps into thinking your phone doesn't support hardware key attestation, forcing it to fall back to basic software attestation which can easily be spoofed.

Been using it on my OnePlus 7 Pro and aside from when I had to switch to the fork, I haven't had any times where SafetyNet has stopped passing.

tripdout··on Interoperability: Swift’s Super Power
> Instead [of using a library like libffi], Swift embeds a copy of clang, the C and C++ compiler, which is able to directly translate between the languages avoiding penalties in code size and runtime performance.

How exactly does this work? Is it compiling C/C++ code alongside the Swift code and transforming that into some kind of Swift implementation?

tripdout··on This is a black and white photo, but an artist has drawn color lines through it
Same here. They look completely grey, but the red stripes really stand out.
tripdout··on Introduction to Immutable Linux Systems
They work perfectly fine on NixOS at least, can't speak for the others.
tripdout··on Currying in Kotlin
The Nix language is similarly nice: (assume the following is inside a let block)

add = x: y: x + y addFive = add 5 result = addFive 3

tripdout··on Scrum is a cancer
I much prefer Kanban. No unnecessary time spent coming up with story points that will be inaccurate anyways and don't even provide much benefit.
tripdout··on We’re all just temporarily abled
Not a video call but a recording made by the user, and not specifically for accessibility testing, but UserTesting is something similar like that.
tripdout··on Show HN: A website for remote workers to find Airbnb's with good Internet
If hosts don't use the feature on AirBnB, why would they use this 3rd party website?
← PreviousPage 7 of 9Next →