News for hackers. Stuff that matters.

ovis

Re:We Can Terraform the American West on Saturday October 26, 2024 @12:10PM (#41955658)
From a map I found[0], it looks like Sweden has an average annual temperature of around +5⁰C, and northern Ontario and Quebec are closer to -5⁰C?

[0] https://upload.wikimedia.org/wikipedia/commons/9/92/Annual_A...

Do you consider implementing an interface to be subclassing? And if so, what's the OO alternative? Prototypes?
It's rugged! 6-8 days is typical, according to Parks Canada: https://parks.canada.ca/pn-np/bc/pacificrim/activ/SCO-WCT
Re:Amazon Cutting Another 9k Jobs on Monday March 20, 2023 @11:25AM (#35232912)
At least according to Amazon,

"Some may ask why we didn’t announce these role reductions with the ones we announced a couple months ago. The short answer is that not all of the teams were done with their analyses in the late fall; and rather than rush through these assessments without the appropriate diligence, we chose to share these decisions as we’ve made them so people had the information as soon as possible."

(From the announcement.)

It's not necessarily unrealistic. It only takes one terrible driver to drag down the mean and make everyone else better than average!
Re:The case for dynamic, functional programming on Wednesday November 23, 2022 @10:03PM (#33727399)
"This website" referred to Hacker News itself, which is written in a Lisp (Arc).
> But they don't mutate data and hence every function call creates a new data in memory taking up space.

Well, only if you mutate the data. And even then, most functional languages provide persistent data structures that allow efficient sharing of the unchanged parts of the data structure.

> Now my question is where do I learn about these nitty gritty's? Should I read about compilers more? Or systems? Or what?

I'd recommend choosing a functional language and an imperative language and learning both.

Re:Processing billions of events in real time on Tuesday November 16, 2021 @12:01AM (#29237043)
For some reason I'm kind of sad seeing Twitter's (very cool) homegrown technologies in the "Old" diagram with the "New" architecture basically Google Cloud. I'm sure it makes sense internally, but it feels like the loss of an innovation center in the streaming space.
Re:Weird Languages on Saturday August 28, 2021 @11:32AM (#28338831)
From the article,

> [Lisp macros] by their nature would be hard to implement properly in a language without turning it into a dialect of Lisp

Other candidates that come to mind (because I recently learned about them) are effect systems, like in Koka.

To clear up a possible misunderstanding, CPython != Cython.
Re:Thread Pools on the JVM on Monday July 19, 2021 @12:40PM (#27884609)
What benefits does loom provide vs using something like cats-effect fibres?
Re:Scala 3.0 on Friday May 14, 2021 @06:46PM (#27160468)
Do you think IDEs would have grown support for them before they were a language feature?
Re:Kafka without ZooKeeper on Tuesday March 30, 2021 @08:24PM (#26642161)
One advantage of Kafka is the ecosystem effect. There are many systems (Flink, Kafka Streams, Pinot, Druid, Presto, etc) that connect to Kafka. I'm not sure about the extent of Pulsar support here, although I'd love to learn more!
Re:Kafka without ZooKeeper on Tuesday March 30, 2021 @08:20PM (#26642142)
1. That's untrue. Partitions are limited to what a machine may handle, but topics may be scaled across many ordered partitions.

2. This is generally handled by the client library transparently. Have you ever needed to manage this state manually?

Re:A “Better C” Benchmark on Saturday March 27, 2021 @12:36PM (#26603523)
How would you structure it (in broad strokes)?
Re:Dire wolves were not wolves, new genetic clues reveal on Thursday January 14, 2021 @10:32AM (#25777518)
They may be using the term "dog" to refer to Caninae (or Canidae?) rather than wolf-derived pets, judging by the description of the phylogeny.
Re:Rust: The Error Handling Project Group on Saturday September 19, 2020 @09:37AM (#24527336)
It's interesting that I could write your last sentence, but replacing "exceptions" with "monadic error handling."

Ultimately, both are equally expressive and it's reasonable to personally prefer either. The "Result" type approach maps better to the concept of a program as a series of inputs and outputs (functions).

Re:Classes are a way of writing higher order functions on Wednesday September 09, 2020 @12:57PM (#24423016)
> In the functional example, where does Person store the fName and lName variables?

With a closure? And you get state hiding too.

> If functions persist data, are they really classified as functions anymore?

Sure, since otherwise returning a function from a function wouldn't be very interesting.

Re:World's oldest fossil trees uncovered in New York on Tuesday December 24, 2019 @10:15AM (#21872543)
Perhaps they know the stratigraphic relationship between the sites and can estimate that way? (If one fossil is above another and you can rule out faulting or overturning, then you know which is younger.)
Re:Grise Fiord, Canada's most northerly community on Thursday October 24, 2019 @10:58PM (#21351431)
We do! Sometimes. A lot of places in Nunavut use that spelling - just a historical oddity I suppose.
Doesn't the fellow who sees the camera footage and issues a ticket qualify?
The common refrain that Vancouver is experiencing an exodus due to housing costs is a bit contentious: https://biv.com/article/2019/02/housing-related-brain-drain-...

I'd be interested to learn about other objective studies on this.

Re:Show HN: Snowy – a new image library for Python on Wednesday September 05, 2018 @10:27PM (#17923504)
Given than a numpy array could contain lots of different kinds of data, how do you tell whether you're passing something image-like? Seems like even a thin wrapper could prevent some stupid mistakes.
Re:Structural engineers are unsung heroes on Sunday March 18, 2018 @11:57AM (#16612521)
In some places, yes. Ontario, for example, imposes hefty fines on individuals who use the an engineering title without accreditation.
Re:US Electric Car Sales Report on Monday February 05, 2018 @01:03AM (#16306933)
Reliable might be an open question, and something 2-3 times the price of a Corolla or Civic is affordable to a very particular demographic.

Older »