Better HN
topnewbestaskshowjobs
Log inSign up

ovis

615 karma · joined Feb 21, 2013 (13y ago) · 139 submissions

Submissions

comment 2y ago · link · parent

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...

comment 3y ago · link · parent

Do you consider implementing an interface to be subclassing? And if so, what's the OO alternative? Prototypes?

comment 3y ago · link · parent

It's rugged! 6-8 days is typical, according to Parks Canada: https://parks.canada.ca/pn-np/bc/pacificrim/activ/SCO-WCT

comment 3y ago · link · parent

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.)

comment 3y ago · link · parent

It's not necessarily unrealistic. It only takes one terrible driver to drag down the mean and make everyone else better than average!

comment 4y ago · link · parent

"This website" referred to Hacker News itself, which is written in a Lisp (Arc).

comment 4y ago · link · parent

> 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.

8.

St. John's woman loses home after Phoenix pay fiasco(cbc.ca ↗)

40 points · by ovis · 4y ago · 24 comments

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

To clear up a possible misunderstanding, CPython != Cython.

comment 5y ago · link · parent

What benefits does loom provide vs using something like cats-effect fibres?

13.

Thread Pools on the JVM(gist.github.com ↗)

217 points · by ovis · 5y ago · 117 comments

comment 5y ago · link · parent

Do you think IDEs would have grown support for them before they were a language feature?

comment 5y ago · link · parent

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!

comment 5y ago · link · parent

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?

comment 5y ago · link · parent

How would you structure it (in broad strokes)?

comment 5y ago · link · parent

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.

comment 6y ago · link · parent

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).

comment 6y ago · link · parent

> 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.

21.

Air force focusing on flight software in crash investigation(cbc.ca ↗)

1 points · by ovis · 6y ago · discuss

22.

A melting glacier could redefine the Alberta–B.C. border(newsinteractives.cbc.ca ↗)

1 points · by ovis · 6y ago · discuss

23.

Fake Goods Sold by AliExpress, Amazon, eBay, Walmart and Wish(cbc.ca ↗)

59 points · by ovis · 6y ago · 81 comments

comment 6y ago · link · parent

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.)

comment 7y ago · link · parent

We do! Sometimes. A lot of places in Nunavut use that spelling - just a historical oddity I suppose.

comment 7y ago · link · parent

Doesn't the fellow who sees the camera footage and issues a ticket qualify?

comment 7y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

In some places, yes. Ontario, for example, imposes hefty fines on individuals who use the an engineering title without accreditation.
12345