News for hackers. Stuff that matters.
Re:How we built ngrok's data platform by valzam on Monday September 30, 2024 @06:40AM (#41695622)
i pity the developer who has to maintain tagless final plumbing code after the “functional programming enthusiast” moves on… in a Go first org no less.
Re:How we built ngrok's data platform by epgui on Monday September 30, 2024 @08:25AM (#41696370)
I would much rather inherit an FP data pipeline than anything else. You do realize data pipelines (and distributed computing) are an ideal use case for FP?
Re:How we built ngrok's data platform by pjmlp on Monday September 30, 2024 @10:19AM (#41697377)
I guess the issue being point out is the choice in a Go culture shop, and we all know their common point of view regarding "fancy" languages.
Re:How we built ngrok's data platform by epgui on Monday September 30, 2024 @10:36AM (#41697605)
It’s not clear to me why having two different sets of tooling for solving two different kinds of problems, is an issue.

In most well-resourced companies, you’re probably not going to have to ask your Go engineers to fix data pipelines in Scala.

Re:How we built ngrok's data platform by pjmlp on Monday September 30, 2024 @11:22AM (#41698221)
That is why they pointed out the leaving the company, as possible scenario.

As for well resourced I guess it depends, that variable usually doesn't mean much, as we can see by companies firing whole departments, while swimming in profits.

Re:How we built ngrok's data platform by otter-in-a-suit on Monday September 30, 2024 @09:01AM (#41696641)
Author here. This decision went through all proper architecture channels, including talks with our engineers, proof of concepts and the like.

I’ve been doing this too long to shoehorn in my pet languages if I didn’t think they’re a good fit. And I think that scala/FP + Flink _is_ a good fit for this use case.

We did also explore the go ecosystem fwiw - the options there are limited (especially around the data tooling like iceberg) and go is simply not a language that’s popular enough in the data world.

Python’s typing system (or lack thereof) is a huge hinderance in this space in general (imo), and Java didn’t cause many happy faces on the Eng team either, but it’s certainly an option. I just find FP semantics a better fit for data / streaming work (lots of map and flat map anyways), and Scala makes that easy.

Also no cats/zio - just some tangles final _inspired_ composition and type classes. Not too difficult to reason about, not using any obscure patterns. I even mutate references sometimes. :-)

Re:How we built ngrok's data platform by atomicnumber3 on Monday September 30, 2024 @10:25AM (#41697451)
I'm assuming the parent commenter hasn't worked in data/spark before either. The functional rabbit hole goes WAY deeper than even just cats et al, and Scala and spark themselves both encourage a fair amount of functional-style code on their own.
Re:How we built ngrok's data platform by boltzmann-brain on Monday September 30, 2024 @09:36AM (#41696933)
scala? why not haskell instead?
Re:How we built ngrok's data platform by atomicnumber3 on Monday September 30, 2024 @10:26AM (#41697471)
Spark is written in scala and Scala is its first-class language - other languages suffer from either second-class APIs (Java) or suffer from codec/serde overhead (pyspark) (though pyspark actually also is missing a few APIs that scala has, as well).
Re:How we built ngrok's data platform by otter-in-a-suit on Monday September 30, 2024 @09:40AM (#41696959)
Not assuming you’re serious, but in any case: the reason is the JVM (+ Scala) ecosystem in the data space.
Re:How we built ngrok's data platform by epgui on Monday September 30, 2024 @10:33AM (#41697571)
FWIW, I do believe there is a serious case to be made for Haskell… But it’s probably beyond the scope of this context / would require changing many other decisions.

If integrating with java tools was important then personally I’d ask “why not Clojure”.

:)

Re:How we built ngrok's data platform by bfors on Tuesday October 01, 2024 @10:30AM (#41708939)
Could you speak to how you're interfacing scala with flink? I looked into using scala with flink a while back, and stopped when I found out that the scala API was deprecated.
Re:How we built ngrok's data platform by moandcompany on Monday September 30, 2024 @11:53AM (#41698603)
There was a prior effort to create a Golang SDK for Apache Beam https://beam.apache.org/documentation/sdks/go/

The BEAM Golang SDK work came from Googlers working on Beam that were Golang fans, and internally there were Golang-oriented tools for batch data processing that needed a migration path forward.

Historical Note: Apache Beam also originated from Google as "Dataflow"