HNHacker News
TopNewBestAskShowJobs

sullyj3

1,004 karma · joined July 4, 2014

submissionscomments
sullyj3··on Golang: Know Your 'Nil'
The pain of unwrapping a result type? What's painful about it? If, rather than automatically bubbling it up with ? operator, you want to handle the possibility of failure inline explicitly, it's a simple case of pattern matching that's no more verbose than the `if err != nil` idiom

    match fallible_function() {
        Err(e) => // handle error
        Ok(val) => // do something with val
    }
In this case, you of course don't need to annotate the outer function's type with its possibility of failure. In the case where you use ?, you of course do have to annotate the possibility of failure. However, I think trying to argue that this is more painful as syntactic ceremony than constant nil checks is a non-starter.

It's a strict improvement. You can choose to unwrap on the spot with the same amount of syntactic ceremony as go, except with the compiler checking you've handled the cases. Or, you can do the same thing you were going to do in go anyway, with a single character and a type annotation instead of a stanza.

All this is ignoring the extra power methods like `map`, `map_err`, `map_or_else`, etc, give you.

sullyj3··on Golang: Know Your 'Nil'
Man, people are really downvoting accurate information just because the truth hurts.
sullyj3··on How We’ll Know an AI Is Conscious
It's important to note that you don't need to be able to simulate "consciousness" (raw feels, philosophically contentious, who knows what it's made of) to get "intelligence" (by which I mean powerful optimizing behaviour in a wide variety of environments).

It may or may not be the case that anything intelligent enough necessarily becomes conscious anyway, but there's no way that intrinsic difficulties with simulating "consciousness" could block us from getting intelligent behaviour.

sullyj3··on How We’ll Know an AI Is Conscious
This is one of those cases where the word "just" is doing a whole lot of work. You can't "just" away the fact that predicting outcomes is one of the primary functions of intelligence.

If you had a language model that really could perfectly predict what you were going to say next, it would have to have a complete working predictive model of you and your reasoning.

sullyj3··on How We’ll Know an AI Is Conscious

    def main():
      print("I am conscious")
sullyj3··on Crystal 1.0 – What to expect
Haskell's concurrency has those features! The Async library contains high level combinators for concurrency that are particularly nice to use.

    (page1, page2) <- concurrently (getURL url1) (getURL url2)
https://hackage.haskell.org/package/async-2.2.3/docs/Control...
sullyj3··on Performance comparison: counting words in Python, Go, C++, C, Awk, Forth, Rust
Luckily, that very article exists!

https://chrispenner.ca/posts/wc

Edit: upon reading the article it seems like the'yre different kinds of word counting. Still interesting and worth reading nevertheless!

sullyj3··on Speed of Rust vs. C
C programmers like to talk about discipline, but no human is more disciplined than a compiler.
sullyj3··on Google isn’t happy with Microsoft over online news
They're not wrong, but coming from the creators of AMP this is a bit rich.
sullyj3··on Speed Is the Killer Feature
Are you sure the perceived difference isn't from switching from a phone that you've been using for a while to a new one? In my experience, both android and iphones feel blazing fast when you pull them out of the box, and sluggish later on when you've been using them for a year or two and they're loaded up with all your junk.
sullyj3··on Applicative Parsing
Great explanation, thanks. Do you know of any haskell parser combinator libraries that exhibit the properties you're looking for?
sullyj3··on Facebook to restore news in Australia after last-minute deal with government
Exactly. This is why, when someone sees the front page of a physical newspaper in a store, we detain then until they've paid 10 cents for the privilege.
sullyj3··on If Materialism Is True, the United States Is Probably Conscious (2015)
I don't see that it follows that if you don't have access to something, you can't discuss it.

Appreciate your clarification in the second paragraph.

sullyj3··on If Materialism Is True, the United States Is Probably Conscious (2015)
I don't think this captures most peoples' intuitive notion of consciousness at all. Most people think of it as their directly perceived experience.
sullyj3··on Superintelligence
Just as I thought the author was going to make an actual assertion, he goes "When I was in my twenties.."

I think that's enough of my attention for now.

sullyj3··on Uighurs: 'Credible case' China carrying out genocide
It reads like a caricature of authoritarian propaganda. They're not even trying to be subtle.
sullyj3··on Activists who embrace nuclear power
The problem with "shut up and calculate" is that sometimes you forget to take things into account. People objecting on grounds of land use elsewhere in this thread have been worried about the size of the infrastructure and mines supporting the manufacture of the solar panels. I have no idea what the ingredients of a solar panel are, or how to calculate W/m^2 after taking area for manufacture into account, but it's plausibly "not quite so many". Then you need to start thinking about batteries for energy storage at night, and so on, and the area increases.
sullyj3··on Silicon Valley’s Safe Space
I don't understand how you could arrive at that reading. It seems clear to me that GP is worried about the erosion of free speech norms on HN, and isn't claiming anything like what you suggest.
sullyj3··on Australia to introduce Google, Facebook legislation to parliament next week
I'm not advocating they stop showing the links. I'm advocating they show the links without the content excerpts - the use of which, to my understanding, is the justification for being asked to pay. Since the excerpts are the websites' intellectual property, whereas the links themselves are just links. Surely you couldn't have to pay to link to a website, that would be preposterous. Maybe I'm mistaken though.

They could even have a nice big passive aggressive message "Excerpt redacted due to the XYZ act of 2021. Click here to learn more about how Australian legislation is fucking stupid"

sullyj3··on Australia to introduce Google, Facebook legislation to parliament next week
That discussion wasn't written by the employees of the linked website, why on earth would they be entitled to charge for it? It's like saying record companies ought to get royalties from people who write reviews of their music. The work, while related, is very clearly not the intellectual property of those whose work it's about. Very strange to suggest otherwise. The google case is very different, they're directly using excerpts.

Honestly don't understand why google doesn't just say "fine, we'll stop providing excerpts and only provide the link, enjoy the reduced traffic, you really scored an own goal on this one, dumbasses."

sullyj3··on The Culture War: Iain M. Banks’s Billionaire Fans
I don't disagree that those constitute legitimate problems that will need to be dealt with. But... why not primarily? The potential annihilation of humanity really feels like quite a primary issue to me. I can't tell if you're trying to imply that the odds of that happening are zero or negligible, which we could debate, but just ignoring and sidestepping the issue entirely strikes me as suicidally insane
sullyj3··on The Culture War: Iain M. Banks’s Billionaire Fans
What percentage likelihood of being wrong would convince you that caution was necessary? Personally, I wouldn't be very happy with even a 1% chance of humanity being annihilated
sullyj3··on The world must not accept the jailing of Alexei Navalny
As the saying goes, "sometimes setting yourself on fire sheds light on the situation".
sullyj3··on Why can't I write code inside my browser?
This is the nature of monotonic improvement. Just because things were substantially worse back in your day doesn't mean those darn kids don't have good reason to complain about the pain points of of today in an effort to make things substantially better tomorrow.
sullyj3··on Tips for a Better Life
I think this advice is very much addressed to the kind of person who has no trouble with listening
sullyj3··on Tips for a Better Life
Best not to feed the trolls
sullyj3··on Ruby 3.0.0 RC1
Reduce is just a loop that's already been written for you!
sullyj3··on Foo to Bar: Naming Conventions in Haskell
I like articles like this that identify and address information gaps that aren't tackled by standard learning resources. Noticing these sorts of things that are just obvious to experts, because they picked them up over time, but are never explicitly explained to beginners, is a very useful skill.
sullyj3··on Chess tactics explained
Explaining the moves is a very difficult problem, in a sense the "line" (series of moves) the computer recommends as best for both players is the explanation. Translating that information into, say, english, or some sort of useful graphical format, would be a pretty novel feature.
sullyj3··on We need less powerful languages (2015)
Haskell is substantially more powerful when it comes to features like enforcing compile time guarantees about properties of your program, as well as writing highly polymorphic functions.
← PreviousPage 5 of 18Next →