HNHacker News
TopNewBestAskShowJobs

greenhouse_gas

1,066 karma · joined February 28, 2017

submissionscomments
greenhouse_gas··on Stack Overflow Isn’t Very Welcoming – It’s Time for That to Change
The problem with points is that they become the way to gauge your reputation. In contrast, in fora like HN or reddit (where points are, well, pointless) the username is the way to gauge your reputation.

So I don't care how many points you have in HN, but people will notice if you comment a lot and have deep knowledge.

greenhouse_gas··on Stack Overflow Isn’t Very Welcoming – It’s Time for That to Change
It's for several reasons (and why I personally find reddit (of all places!) a much more welcoming and useful community):

1. Points. They're very visible, giving you power. If you want power, you mine for points, and once you earn them, well you worked for your power, you use your power. You are expected by the powers-that-be to close questions for being bad, or for being duplicates, or whatever. In contrast, reddit doesn't focus on points. You focus on the name/flair. So the focus is hanging around and answering questions - in other words, it's more of a community than a way to show off your knowledge.

2. The communities are kept separate. For example, /r/Rust has a different community culture than, say, /r/golang. So they have different mods with different policies.

3. The lack of community moderation means that I don't have to be scared that 5 guys out of 5000 decide that my question "wasn't good enough" or "subjective", closing it. And yes, there are hard-code reddit communities. /r/askhistorians put's history.stackexchange.com to shame in rigor. To write an answer there, you're writing a term paper based of primary sources. So how do they do it? They have a team of moderators. Really, stackoverflow could be broken up into rust.stackoverflow.com and go.stackoverflow.com and python.stackoverflow.com, where each community elects[1] their knowledgeable moderators who know their community and respects them.

3. Unlike reddit, they're not trying to solve my problem. They're trying to be a large database of answers[2]. A wikipedia of programming or something (which is why duplicates are not just pointed out, but actively closed, and why "open ended discussion questions" are closed). The problem is that I'm not interested in that. I'm interested in getting my question answered. Now if you don't want to answer my question, that's fine. But it's up to the asker.

[1]. Another point - community elections means that there's politics involved. reddit allows one to easily fork a community, so if a significant group of users don't get along with /r/linux, they can fork and make /r/linuxos or something.

greenhouse_gas··on The Many Ways Google Harvests Data
Wait, microG does this stuff too? Or did you mean OpenGApps?
greenhouse_gas··on Ask HN: When do you use a library vs. implement something yourself?
ECMAScript is also an (ECMA) standard language. Yet it has NPM.
greenhouse_gas··on Ask HN: If you could go back to study any CS-related field, what would it be?
>they've made a point of stressing the importance of not rolling your own crypto,

I think there should be a class on how to roll your own crypto, because someone's got to do it, and, as we saw with Heartblead, you don't want something like crypto to be something only a handful of people in the world to understand.

greenhouse_gas··on Ask HN: If you could go back to study any CS-related field, what would it be?
And also, its one of those things that's hard to learn on your own. On the other hand, do they cover defense against practical attacks in uni? As in, will you be told to roll your own crypto, and have the professor show you the timing attacks, etc.? Because honestly, the theory you can pick up on your own, in industry you just use a library, and I don't know how nice will OpenSSL devs be if you just show up as a crypto noob on their doorstep asking for mentoring.
greenhouse_gas··on Ask HN: When do you use a library vs. implement something yourself?
I think its about which languages have good dependency management.

For example, Go, C and C++ have bad dependency management, so most programmers will try to stick to stdlib solutions, only moving to dependencies if copy-paste is an overkill (I wouldn't copy-paste sqlite wrappers, but I would copy-paste a left-pad like function).

NPM and Rust (which isn't managed) has great dependency management, so they move things out of stdlib into packages.

But, it backfired when no one is sure which packages are official, so Rust made a "nursery" of officially maintained out-of-stdlib standard functions.

greenhouse_gas··on MySQL 8.0 is now generally available
Thinking about it, codebase-wise XP came from 2000 which came from NT4, which could be why 2000 became 6.
greenhouse_gas··on MySQL 8.0 is now generally available
I'm not a DBA, and it could very well be that it's because I'm coming from the LAMP world, but when I need something light and simple, MySQL or MariaDB fit the bill a lot more than Postgres.

In MySQL there are five steps: Install MySQL (creating root user at the same time), CREATE DATABASE X, USE DATABASE X, CREATE table Y, work.

If I need something more secure, I'll add a "Create User"/add permissions step in there.

For some reason, step 2-4 (create user and set up database/table) give me a headache in Postgres.

greenhouse_gas··on FCC Issues Warning in Wake of Swarm's Unauthorized Launch
Just to emphasize: There is no limit to the earth's gravitational pull. The formula is F=G*sqrt(m1m2)/r^2.

So as r (the distance between the center of the earth and your satellite) increases, F decreases. But it never hits zero.

Though after a while (a Sun-Earth L point, is it?), the influence of the sun will be greater (by orders of magnitude) than the earths.

greenhouse_gas··on MySQL 8.0 is now generally available
You forgot (especially you're counting consumer Windows, and 2000 was Server windows) 3.1 -> 95 -> 98 (OK. That was normal) -> ME -> XP -> Vista -> 7 (Which should have been 9 If I counted correctly) -> 8 (another OK count) -> 10 -> ? (I don't remember all the Windows 10 releases)
greenhouse_gas··on MySQL 8.0 is now generally available
1. LAMP - If you're working with shared hosting, there isn't much of a choice.

2. WordPress.

3. If you need something simple and basic, MySQL is much easier to get up and running.

greenhouse_gas··on One red paperclip
How much of this would be possible nowadays with all the online marketplaces? I can't imagine such arbitrage is still possible.
greenhouse_gas··on New tools for open source maintainers
It's not about email being easy. It's that I don't want my email getting out (spam and all that - you send one email to a bad behaving mailing list, and your email is all over the internet forever for spambots to harvest.)
greenhouse_gas··on France’s government is building its own encrypted messenger service
So it's a blockchain! /s
greenhouse_gas··on Microsoft built its own custom Linux kernel for its new IoT service
>Windows 10 Enterprise LTSB

So tell me, where can I buy that for my personal computer?

>because they're for serious people

No, because those who can get Windows 10 LTSB actually have the power to push back. Imagine telling Dell or HP that everything they type may be sent to MS at any time.

>You can still take control

So how can I permanently end all telemetry, now and forever on my box. I'm even willing to sign a letter that I won't hold them responsible for any viruses that I get because I didn't update in time.

greenhouse_gas··on ReactOS releases 0.4.8 with experimental Vista/7/10 software compatibility
It's much easier to Greenfield your way rather than reverse engineer (bug-for-bug) complicated code.
greenhouse_gas··on Microsoft, Google, Mozilla, and Apple Object to W3C Fork of DOM Spec
You can be unsafe even with typesafe builders. See

fn build(text_to_show: &str) -> HTML{ HTML(Body(H1(text_to_show))) }

What if text_to_show wasn't sanitized? You got yourself a XSS. And if you do sanitize it (and keep it in a StrSanitized type), what are the chances of accidental XSS?

Really, what should have been done is a "user supplied tag", which automatically displays everything as plain text, like <user-supplied id="ahdjdh37736xhdhd"> Content </user-supplied id="ahdjdh37736xhdhd">

greenhouse_gas··on Fuchsia is not Linux
>If you were starting a new project from scratch today, I'd seriously ask why not Rust, though of course there are other reasons why you might not choose it. But given the history, and how new Rust was at the time when this project was started, it makes a lot of sense.

While I'm not saying that rust is bad, Rust as a kernel language won't help you here. The simple proof is that Redox-os (which is a microkernel built in Rust) was found with the same class of bugs your average OS had.

greenhouse_gas··on Google is about to launch a Gmail Web Redesign
how did you get $15 a year? The lowest prices I see are $30?
greenhouse_gas··on Why Does “=” Mean Assignment?
Also how do you prevent "if(a=b)" if both sides are variables?
greenhouse_gas··on Making a Statically-Linked, Single-File Web App with React and Rust
> Those are both still VMs? Latest android looks like ART + JIT, but you can't AOT a JIT (that's the whole point of doing it Just In Time)?

Dalvik was a JIT VM. Then, for Android 5.0 (Lollipop), Android moved to AOT compile code (On installation and ROM upgrade, which is why if you ever updated Android then, you'd be sitting and waiting for a few minutes while Android optimized apps).

Then recently (I don't remember if it was for Marshmallow or Nougat) Android went back to a JIT VM on install, followed by a background AOT compile. This way installation goes faster (it doesn't have to compile everything right away), ROM upgrades go way faster (you don't have to AOT compile tens to hundreds of apps before being able to use your phone), and Android can do guided optimization during AOT (it knows which hot-paths were taken).

greenhouse_gas··on Introducing the LineageOS SDK
Thanks a lot!!
greenhouse_gas··on Introducing the LineageOS SDK
I recognize the username :) .

>Despite being based on AOSP, omni/lineage/etc all have pretty different features, so usually it takes a nontrivial amount of effort to go between the two (although it's definitely less effort than starting from scratch)

I understand, the same way that Firefox and Chrome are very different, yet work on the same kernel, or are the differences between Lineage and others that deep?

So for example, Omni has athene up and running on Oreo, while despite officially being maintained (with three maintainers at that), according to Lineage OS' code review, it hasn't been worked on since last July.

So the way I see it (coming from a dev, though not a ROM dev): Android has multiple layers. It has hardware-dependent code (such as the kernel) and hardware-independent code (such as bionic or Java), sort of like in Desktop Linux you have the kernel and X, and there's bash, gnome and Firefox.

So why can't (I know how that sounds coming from the outside ... ) you take their hardware code (the kernel and whatever the Android equivalent of X is) and build on top of that? Is the whole system that integrated?

On the other hand, now that Treble officially separated the two, will it be possible to, for example, flash Omni and then flash a lineage image on top of that?

>We don't blindly support devices (even as "beta") because we have no way of verifying that everything actually works

But does every Debian maintainer (of a userspace program like, say, MySQL) have every combination of hardware? You just assume that the kernel and libc are a reliable abstraction and go from there. Is that impossible on Android?

greenhouse_gas··on Introducing the LineageOS SDK
What's even worse is that they don't work together. If all all ROMs are based on AOSP, why can't they work together to get device compatibility? For example, why can't Lineage use Omni's code to support 'potter', and Omni use Lineage to support 'gemini'?

And then you have all the single developers working on their own devices. Why can't Lineage pull their work, do basic code review, and publish them as "beta" (and you get free beta testers)?

greenhouse_gas··on ACME v2 and Wildcard Certificate Support is Live
>developers who just want their software to work.

Do they keep their servers up to date? Why is it so much easier to do that than getting an SSL cert four times a year?

I hope they update their servers more often than that.

greenhouse_gas··on How not to run a CA
>In that scenario, could I not just verify the bank's public key when I'm physically in one of their branch locations while opening an account? They could also verify my public key at the same time. That would allow for a direct line of trust. The same could apply to any company one deals with.

You could? Would your grandmother? Would you fly to Mountain View to get Google's? And then turn around and fly to Washington DC to get the IRS's? And then turn around and fly to who knows where to get HN's? And then tell them to keep customer staff ready to assist you to install their public keys?

And what about personal blogs that don't want to be MITM?

greenhouse_gas··on How not to run a CA
>They're switching to TOFU instead, the first time you see a key it's trustworthy, similar to SSH.

Which is horrible unless your first connection to a server is trustworthy or you have an out-of-band way to verify keys (which is why it works in SSH, and can't work on the web).

greenhouse_gas··on How not to run a CA
It's not. It's actually worse.

You're assuming that random people on the internet are going to collectively be more secure than CAs, which is obviously not the case.

Imagine you get an email signed by the IRS, and which is trusted by people A1, A2 and A3, who are trusted by people B1, B2, and B3 ... who are trusted by Z1, Z2, and Z3, who are fully trusted by you.

Should be reliable, right?

But while Z1, Z2 and Z3 may keep all OPSEC rules, you have no guarantee that they verified that Y1, Y2 and Y3 did. And even if they did, you have no guarantee that ...

And even if you did, can you guarantee that no one there got any malware, which signed off on a bunch of fake certs?

greenhouse_gas··on Announcing Flutter beta 1: Build beautiful native apps
>and rewrite pretty much all my app infrastructure

Though, to be fair, you'd have to do that even if the Flutter was written in Kotlin. Maybe not the back-end parts, but the View would definitely have to be re-written.

← PreviousPage 2 of 10Next →