HNHacker News
TopNewBestAskShowJobs

chakkepolja

304 karma · joined May 27, 2021

submissionscomments
chakkepolja··on A regular expression to check for prime numbers (2007)
The proof for a^n b^n, as I was taught, being that

-> there exists a integer N such that pumping lemma holds for any w in L longer than L. (That is we can divide w into xyz and pump y, where |xy| ≤ n, and y is nonempty).

-> now consider a^N b^N, we cant divide it into xyz such that we can pump y and w still remains in a^n b^n.

chakkepolja··on A regular expression to check for prime numbers (2007)
The canonical example for pumping lemma disproof is a^n b^n, which is more obvious IMO.
chakkepolja··on The war on gifted education
In old times, kids would be growing in villages. There will be other kids from the neighborhood and family. Now it's replaced by friend groups in schools. I don't see much difference. They might have interacted more with adults than now, though.
chakkepolja··on Why Kreya isn't open source
Isn't that the deal with QT?
chakkepolja··on F-Droid – alternative to Google Play store
Also sharing files and clipboard!
chakkepolja··on I shaved 187MB off United Airlines' 439MB iOS app
200KLOC for IRC client? Where does the majority of code come from?
chakkepolja··on Linux Sysops Handbook
Also see `tldr` tool. Often very handy when you don't have patience to read man pages.
chakkepolja··on A career ending mistake
Can you give some examples of such fields?
chakkepolja··on Ask HN: What was better in the past in tech?
> Today, even electron is reserved for the experienced web dev. See roadmap.sh

I am a recent graduate, but I think UI development has always been hard, whether mobile, web or desktop. Web seems to have had the least barrier to _entry_ (because HTML and JS, I think).

I have had classmates who tried flutter tell that it's so much easier than doing the same thing on web. While it was UI builders then, UI-as-code is new trend. There are some exciting directions now too (Flutter, Jetpack compose, svelte with its first-class reactivity).

chakkepolja··on Why I Like Java (2014)
Maybe GP is talking about type erasure, or considering the mention of teaching, it might be something more obvious like reference type vs value type distinction, strings cannot be compared using ==, etc..
chakkepolja··on Why I Like Java (2014)
The mistake is thinking that blub paradox is one dimensional.
chakkepolja··on Why I Like Java (2014)
IMO maven is much better than gradle these days. Indeed maven or go dependency management is refreshing after you run create-react-app or shit like that.
chakkepolja··on A new wave of Linux applications
I don't think any of the electron applications you mention have mobile-like UIs which can be easily ported to mobile linux.

Also, flutter memory consumption is often 1/3 or 1/4 of the equivalent electron app, which is significant.

chakkepolja··on Unikernels
Another way to describe it is OS-functionality-as-library.
chakkepolja··on A new wave of Linux applications
Rise in cross platform frameworks would be a positive trend.

When I am writing a flutter application, I often run on desktop directly and resize to mobile shape. That works good enough unless I am writing a mobile-specific feature. This probably means most flutter apps can run on other linux based phones as well.

chakkepolja··on Android 13 virtualization lets Pixel 6 run Windows 11, Linux distributions
For that you shouldn't need virtualization though. With termux you can run lot of programs. There are termux packages for few server software. You should be able to compile some more yourself.

I remember being able to run a rootless debian chroot (using utility called proot) on Android 9 device, but things might have changed in meantime and I don't know if it's still straightforward.

If you're looking for serious performance, though, it may not be practical.

chakkepolja··on Benefits and costs of writing a Posix kernel in a high-level language (2018) [pdf]
Also https://news.ycombinator.com/item?id=24572370
chakkepolja··on All you should know about Flutter development
The language fades into background in my experience. There are some gotchas (like overuse of Dynamic) but on the whole, tooling works really well, and can get stuff done.
chakkepolja··on An unscientific benchmark of SQLite vs. the file system (btrfs)
depending on your data, there's also Keyvalue stores like boltdb & badger.
chakkepolja··on Go performance from version 1.2 to 1.18
Go is probably most productive language I'd use for CLI tools and quick server stuff. There are libraries for most things you need, often better documented than python counterparts. Single binary and good tooling.

Now, one may hate something about the language but at the end we bite the bullet and get things done.

That said, Go doesn't have a great ecosystem for website backend dev. You can do it, but often less convenient.

chakkepolja··on Go performance from version 1.2 to 1.18
> Virtual machines are an implementation detail and the latest versions with dynamic tiered JITers, POGO, vectorization, and other techniques can match or exceed static compilation because they optimize based on actual runtime behavior instead of assumptions.

In theory, practice is like theory. In practice, it isn't.

Maybe in 20 years, JITs can provide AOT-like throughput without significant memory / power consumption. Not with current tech, except on cherry picked benchmarks.

chakkepolja··on Origin of the Bluetooth Name
> Everyone I know shares files via a centralized service like WhatsApp, but those are getting iffy also.

Maybe you can convince them to use Files by Google, Trebleshot or something like that, which doesn't require internet.

For desktop <-> mobile sharing, there's always KDE connect for Linux and Windows.

chakkepolja··on Boring Technology Checklist
> you only write Java using your system editor and the JDK in introductory compsci courses.

Even universities in India use IntelliJ or Eclipse these days.

chakkepolja··on Bottles – Run Windows software and games on Linux
> You can easily install all your games on another user on your linux box and run as that user. Super easy and it won't have access to any of your main home directory files. In fact with this configuration it's a lot easier to ensure that the games are sandboxed away from anything important.

I have been told enough times that existence of RCE should be assumed as root access, because someone who can do RCE could probably do a PE too..

chakkepolja··on Don't forget Microsoft
The only viable threat to MS Office I see is the Google docs ecosystem.
chakkepolja··on Don't forget Microsoft
> I'm very happy with how I can copy paste between my phone and laptop.

If you use Linux and Android, you can do that with KDE connect. Pretty sure there's some solution for Windows too.

chakkepolja··on Zim – A Desktop Wiki
> I think I saw an opensource tool like that before, but lost track of it.

TreeSheets?

chakkepolja··on I’m porting the TypeScript type checker tsc to Go
> If it's not in your CI/CD scripts, it's not actually getting checked.

You can make a similar argument and say you must write in a sound type system language, and TS typesystem is unsound.

chakkepolja··on I accidentally used YAML.parse instead of JSON.parse and it worked
I am a generation Z zoomer and people using emoji in code / docs scream immaturity to me.
chakkepolja··on I accidentally used YAML.parse instead of JSON.parse and it worked
maybe lame question but doesn't syntax highlighting make NO different color because it's a reserved word?

If config file is autogenerated then it's a different matter.

← PreviousPage 4 of 11Next →