HNHacker News
TopNewBestAskShowJobs

charliesome

3,785 karma · joined January 5, 2010

https://charlie.bz
submissionscomments
charliesome··on Brazil has the power to save the Amazon rainforest, or destroy it
Why are you so interested in shutting down discussion on this topic? People are talking about and lobbying their governments on this. It's entirely reasonable that we talk about it here too.
charliesome··on What Were CGI Scripts?
PIDs will recycle rather than exhausting. As an aside, that's also the reason why it's unsafe to use a PID from any process other than the parent process. As soon as the parent calls wait(2), the PID is released and could be reused for a fresh process at any moment.
charliesome··on YouTube was launched as a dating site
This feels a bit like the "if you don't like capitalism why do you use an iPhone?" argument.

The reality is that Hacker News is a generally high quality technical forum and that's the reason a lot of people are here.

charliesome··on Ask HN: What are good resources for life advice?
> Those who are somehow convinced he has ties to the despicable alt right,

When he's hosting two prominent alt right figures as guests on his podcast [0], I think it's pretty fair to say that he has ties to the alt right.

[0]: https://twitter.com/jordanbpeterson/status/11164318379565834...

charliesome··on Jailbreaking Subaru StarLink
It looks like the author anticipated that someone would try to unblur the key and left a little easter egg there :)

    >> "7965616820746869732069736E277420746865207265616C206B65792E2E2E2E".scan(/../).map { |x| x.to_i(16).chr }.join
    => "yeah this isn't the real key...."
charliesome··on Jailbreaking Subaru StarLink
As digital radio takes over and analog broadcasting is switched off, that AM/FM radio will indeed become semi-obsolete.
charliesome··on Opioids and the Labor Market (2018)
And what if someone's unable to work?

> Humans are rational creatures

I think this claim needs to be backed up too. There is a lot of evidence indicating that we're incredibly irrational.

charliesome··on We Lost Our Ability to Mend
>I can't spend 30 minutes fixing my clothes because my 30 minutes is more valuable than a tshirt's cost.

I think it's a mistake that we value our own time like this. There's satisfaction that can be derived from spending time mending some of your own clothing, and that contributes to wellbeing. That wellbeing is not something that you can put a dollar value on.

charliesome··on Rust can be difficult to learn and frustrating, but it's also very exciting
> and it's synchronous, so it's really slow.

> it's asynchronous (so it's really fast)

Whether something is 'synchronous' or 'asynchronous' has absolutely no bearing on performance.

charliesome··on The Dutch Reach: A No-Tech Way to Save Bicyclists’ Lives
There's definitely a causative relationship between A and B, although it's not the only factor (of course, safer road design is probably a more significant factor)

When mandatory helmet laws were introduced across Australia we saw a sharp drop off in casual cycling rates which we're only recovering from now. If we never suffered that drop, perhaps we'd have a stronger cycling culture today.

charliesome··on Libaco: A fast and lightweight C asymmetric coroutine library
Hundreds of thousands of OS threads is viable on Linux. There's a couple of gotchas - you need to tweak the max pid and max memory map limits, but otherwise this is an approach that works just fine.
charliesome··on XNU kernel heap overflow due to bad bounds checking in MPTCP
Rust lifetimes prevent use-after-frees, but they're totally orthogonal to buffer overflows. Rust mitigates buffer overflows by automatically inserting bounds checks and panicking on out-of-bounds access. Your program still crashes, but you don't potentially open yourself to RCE.

Ultimately Rust's automatic bounds checks rely on higher level facilities in the language for dealing with slices that C just doesn't have.

charliesome··on Ask HN: Amazon software engineers, how is the work culture now?
I don't understand how this is an argument in favour of free food/drink. You're selling whatever additional time you give to your employer for a rock bottom price. It's not a good deal.
charliesome··on Concorde ‘B’
It's pretty disappointing to see that Boom is still using fossil fuel burning engines. Surely if you're innovating on aviation tech, Mach 2.2 flight for business people is less important than figuring out a way to fly that doesn't kill the planet.
charliesome··on I almost lost my hearing from the lid on the tank of a toilet
In Australia presenting at ER is free, for any reason.
charliesome··on Checked C: extension to C that adds static and dynamic checking
There is a difference. An empty string in C is a non-null char* pointer pointing to a zero byte. Passing a null pointer to strlen will crash.
charliesome··on Chrome 68 will mark all HTTP sites as “not secure”
Self-signed certificates are trivially MITMable. In the absence of cert pinning (like SSH does), they offer no security.
charliesome··on Kotlin: The Problem with null
In Rust you can also write:

    if let (Some(q_in), Some(z_in)) = (q, z) {
        q_in + z_in
    } else {
        0
    }
charliesome··on The beginning of the end for copper wire
In other parts of the world, yes.

Telstra in Australia is bound by the Universal Service Obligation, for instance: https://www.acma.gov.au/Industry/Telco/Carriers-and-service-...

This is an area where it's critically important to regulate the market to make it actually work for the people, not just profit margins. If the service providers were not obliged to provide service to people in remote areas at the same price as everyone else, no service provider would.

charliesome··on A fungus with over 20k sexes
It's not that we don't like jokes - it's that this joke is an easy and boring joke to make. More importantly, it's downright hostile to many people in our community.
charliesome··on Folding Promises in JavaScript
Sorry, I should've been more clear. You're right - you can absolutely build sequence out of the bind operation for any monad.

Promise.all is not just sequence though, there's some additional subtleties to it. In particular the fail-fast behaviour:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

That's the kind of fundamental coalescing operation that you cannot implement with bind on plain monads.

charliesome··on Folding Promises in JavaScript
> Pointless abstraction is one of my pet peeves in this industry. This looks like it has gone from a fairly straightforward, if kludgy, piece of code to something far more complex. Why not just: [code]

Your example code works just fine for promises of course, but not all monads support a coalescing operation like Promise.all.

So even though this article only discusses folding over Promises, the core idea here can be generalised to any monad type (such as Promise, Result, Option, or anything else)

charliesome··on How Booking.com manipulates users
> Dark patterns may help profits in the short-term, but they're terrible for your brand. Just ask TicketMaster.

TicketMaster's customers are people selling tickets, not those buying them.

Their entire business model is based around burning their own reputation, not the reputation of whoever's selling through TicketMaster. That's why they can get away with using dark patterns to make more money for their customers and themselves - consumers don't have a choice.

charliesome··on Oculus founder Palmer Luckey is developing border surveillance technology
Speech and political action is not and has never been free of consequence
charliesome··on What Makes a Senior Software Developer?
I think you mean 'their'
charliesome··on Proposed server purchase for GitLab.com
Latency is an issue. Especially when traversing history in operations like log or blame, it is important to have an extremely low latency object store. Usually this means a local disk.
charliesome··on Uninstall Notepad++ if you have voted for FN
What?? So all parties, no matter how vile or detestable their actions or beliefs, deserve my respect simply because they exist within a democratic system? That is a ludicrous argument.
charliesome··on Uber's technology is reportedly 'hanging by a thread'
I generally find it wise to avoid calling engineering problems faced by other organisations trivial. There are often a lot of complicating factors that aren't obvious from an outside perspective.
charliesome··on GitLab announces $4M series A funding from Khosla Ventures
>That said, there is no valid engineering reason why any web app should require more than 512MB of memory to run with minimal user load.

GitLab (and every other Rails app) makes the assumption that it's better to eager load an entire codebase once at boot time rather than to load code on demand and throw it away during a request.

That trades off baseline memory usage for runtime performance, and it's a perfectly valid 'engineering reason' for why GitLab's baseline memory usage is so high.

charliesome··on Cljs2go – A ClojureScript to Go compiler
What makes a high level language?

Is Assembly high level? In that case GCC would be a transpiler, not a compiler.

What about C? If C is considered high level, the original C++ compiler would have to be considered a transpiler rather than a compiler. Same goes for Chicken Scheme, or any of the other compilers that target C.

If we take the example even further, what about Fog Creek's Wasabi, which compiles to either PHP or VBScript? Or Ruby's compiler, which takes Ruby source and outputs very high level bytecode.

I don't think there's much value in distinguishing 'transpilers' from compilers. It's still the exact same principles at play, no matter what your source or target languages are.

← PreviousPage 2 of 12Next →