Better HN
topnewbestaskshowjobs
Log inSign up

BadInformatics

342 karma · joined Jun 21, 2020 (6y ago) · 175 submissions

Submissions

comment 5y ago · link · parent

Is there a clear consensus that this is the case? I had much the same understanding as you after reading all the debates on rent control on HN, but was recently pointed to [1] which offers a very contrarian perspective (including an analysis of a study done on rent control in SF). As a non-economist, it feels like this topic deserves a great deal more empirical study so we're not stuck arguing with anecdotes and hypotheticals.

[1] https://jwmason.org/slackwire/considerations-on-rent-control...

comment 5y ago · link · parent

In case you haven't seen it already, I found https://news.ycombinator.com/item?id=26779580 to be a pretty succinct list of the biggest stumbling points (latency, telemetry and documentation).

A couple of more specific points I'd like to add after experience writing non-trivial PS scripts:

- Tooling is still spotty. Last I used the VS Code extension, it was flaky and provided little in the way of formatting, autocomplete or linting. AIUI PowerShell scripts should be easier to statically analyze than an average bash script, so something as rigorous as ShellCheck would be nice to have too.

- Docs around .NET interop still appear to be few and far between. I recall having to do quite a bit of guesswork around type conversions, calling conventions and the like.

It's nice to see the docs have had a major overhaul since I last dug into them though :)

comment 5y ago · link · parent

> Most of those terminologies don't come from a general programming paradigm, but are the domain language of specific libraries.

Not really? Most of these concepts can be linked back directly to earlier from CS theory and/or other languages. For example, Redux taking inspiration from FRP and functional lenses, or (most pertinent for this thread) hooks being a facsimile of algebraic effects in JS. As much as I like these concepts in general, I feel some go too far against the grain of what is idiomatic in the language and incur unnecessary friction/spooky action at a distance because of it. For example, here [1] are some well thought-out critiques of hooks and why people struggle with them from experienced JS framework authors.

[1] https://news.ycombinator.com/item?id=22903967

comment 5y ago · link · parent

Though I agree on the cultural ignorance point (especially not choosing to localize terms so that they sound exotic), needless overtime and the 996 culture are absolutely a problem. It's not so much that the work is tiring as the hours are unnecessary and prohibit people from doing stuff outside of work. 20-30 years ago, bonding with peers after work was still pervasive in China/Japan/SK, but the hours were nowhere near as crazy as they are now.

65.

No Seriously, Hate Your Tools(buttondown.email ↗)

1 points · by BadInformatics · 5y ago · discuss

comment 5y ago · link · parent

I think that plan may have been axed, as (anecdotally) the number of communal mailboxes seems to be relatively low among the few cities I've visited/lived in over the past couple of years. Also anecdotally, I'm not sure why the majority of houses (in the burbs) seem to have a mailbox by the door or a mail slot instead of box by the curb. They definitely exist, but feel like a minority outside of rural areas.

comment 5y ago · link · parent

TIL, thanks. Maybe it's different for rural areas, but here in (sub)urban Canada postal workers hit a few houses at a time (and you can tell because most of them wear comfortable walking shoes too). I just looked it up and it seems like their new electric vehicles aren't RHD either, would be curious to know how that decision transpired :)

comment 5y ago · link · parent

Same with Canada Post AIUI. How often does the right-hand driver's seat thing come into play? Seems like the procurement for this kind of custom vehicle couldn't/won't be cheap.

comment 5y ago · link · parent

This was about removing the feature (which IIRC wasn't completed yet) that would allow you to "install" a PWA. I'm as disappointed as you that they removed it, but calling it "they removed PWAs" is just FUD.

comment 5y ago · link · parent

> My impression from reading the paper is most of the other optimizations (custom kernels, contiguous memory, checkpointing, etc) are orthogonal to the partitioning stuff

This is true, I include them as examples of the amount of engineering work involved because using the partitioning as an example would require recapitulating their blog post :)

> But they seem to emphasize that this isn't what their partitioning is, and that's the part that perplexes me the most. To be specific, I'd like someone to explain how their magical zero-redundancy data parallel (termed ZeRO-DP in the paper) works and how it's different from from model+pipeline parallel, and their paper is awfully sparse on that.

Again, https://www.microsoft.com/en-us/research/blog/deepspeed-extr... is a much better resource on this. There really isn't any magic going on, nor are many of these ideas (checkpointing, model state sharding, bucketing, JIT communication of new states interleaved with compute, etc.) new when considered in isolation. ZeRO is data + model + pipeline parallel, but optimized to the nines and actually usable as a production library.

comment 5y ago · link · parent

Having followed this DeepSpeed stuff for a little while, the ZeRO paper is probably as close as you can get to an ELI5 because there's no singular brilliant idea behind this. Most of the ideas have been explored already (see e.g. the PyTorch DDP paper), but ZeRO takes them to their logical conclusion by throwing a TON of engineering work into the equation. For example, they implement custom fused kernels on CPU/GPU and a hand-vectorized Adam implementation.

I found that this earlier blog post [2] has a much better deep dive (with decent animations and more) into the underlying architecture. The ZeRO-Offload paper [3] also has far more detail about that part of the pipeline.

[1] https://arxiv.org/abs/2006.15704 [2] https://www.microsoft.com/en-us/research/blog/deepspeed-extr... [3] https://arxiv.org/abs/2101.06840

comment 5y ago · link · parent

GP makes a fair point about JAX still requiring a limited subset of Python though (mostly control flow stuff). Also, there's really no in-library way to add new kernels. This doesn't matter for most ML people but is absolutely important in other domains. So Numba/Julia/Fortran are "better in that department in terms on performance" than JAX because the latter doesn't even support said functionality.

comment 5y ago · link · parent

In case you haven't found it already, IME https://github.com/asvetliakov/vscode-neovim is a more performant, less buggy and more feature complete vim mode for VS Code. I use it on the daily for local and remote dev!

comment 5y ago · link · parent

The latter. WGSL (purposefully) lacks many of the high-level niceties of GLSL or HLSL in order to be a good compile target as well. IIRC it has a 1-1 mapping to SPIR-V constructs, so you can see how one might build higher-level languages/DSLs/compilers on top of it.

comment 5y ago · link · parent

My sense is that they're somewhat better than, say, AMD at keeping development work in the open instead of just throwing code over the wall. Hence the choice of "development model" instead of just "FOSS". It's a low bar though, IIRC a lot of ROCm is just periodic code dumps with no visible PR strategy.

comment 5y ago · link · parent

It's better to think of this as a more friendly (i.e. open source development model) first party compute stack than some kind of pan-vendor standard. For example, anyone using MKL is now nominally using oneAPI libraries. They also went to the trouble of implementing/pushing existing standards instead of baking their own thing: SPIR-V for the IR format, SYCL for the high level programming interface, an OpenCL 3 implementation (AIUI they have the most complete implementation of 2.x and 3), etc.

comment 5y ago · link · parent

> do you want to try a new standard that you don’t known if it will be obsolete in a couple of years

Some incarnation of oneAPI is bound to exist as long as Intel has a foothold in the HPC market. For example, MKL and MKL-DNN have been rebranded with a oneAPI prefix. So no, the long term stability argument doesn't hold water.

I'd also note that they appear to have added support for cuBLAS and cuDNN as backends in their respective oneAPI libraries. It would be hilarious if that lead to more people running oneAPI on non-Intel hardware than first party stuff.

comment 5y ago · link · parent

This is hands down the best description I've seen of why so many of us persist in using Python despite the language or runtime. I do hope that more alternative language ecosystems will begin to thrive in the numerical space and that we'll see more ergonomic facilities for generating high performance code from within Python itself.

comment 5y ago · link · parent

Only if you want to write C++, which a diminishing number of ML researchers or practitioners do. SYCL makes more sense for traditional HPC, but since it works at the source level it doesn't make as much sense for ML framework codegen. Something like MLIR will hopefully help though (eventually).

comment 5y ago · link · parent

As well as employing Simon Peyton Jones.

Jane Street and OCaml would be another good example of deep corporate involvement in an ML family language.

comment 5y ago · link · parent

I'm not sure that's a fair characterization. Core team members have expressed serious interest in getting more static verification, interfaces and other type goodness into the language, but if you try to force the issue it turns into a Python 2->3 problem. Not to mention that there are few if any examples of how to fit type checking alongside multiple dispatch (e.g. C# punts with dynamic).

I personally find static types indispensable when working with a large codebase, but to say people don't care about this in the Julia community is just not correct.

comment 5y ago · link · parent

I work with bog-standard deep learning and this does come up, albeit not in the research stage that most people are familiar with. The closer you get to deployment, the less adequate Python becomes and the more you struggle with artificial limitations like the GIL. https://news.ycombinator.com/item?id=20301619 had a good discussion on whether we've collectively "overfit" on this slow glue + fast matrix accelerator model.

comment 5y ago · link · parent

I mean yes, because a) there's less to change, b) you still have nice features like protocols and c) Python's type system is pretty unsound. My point was that saying ML is too complex for type systems is really a cop out, and that has been borne out by how many languages have started experimenting with more complex types for this exact purpose.

comment 5y ago · link · parent

In addition to what the sibling said, a big part of the S4TF project was proposing changes to Swift's type system. I'd also point out that there are not one, not two, but three type checkers looking into tensor typing for Python. What's more, Guido is on that committee!

comment 5y ago · link · parent

I would've assumed so too had they not mentioned both AI and algorithms. That to me strongly implies deep learning frameworks. Also, stuff like https://data-apis.github.io/array-api/latest/ exist because of how many inconsistencies are present among related libraries in the Python ecosystem.

comment 5y ago · link · parent

GP was referring to type hints and how they don't provide any runtime validation. There are libraries like Pydantic that let you do some, but nothing built into the language runtime IIRC.

comment 5y ago · link · parent

> I prefer having a Python monoculture for AI to be able to mix and match different algorithms

Given how divergent the current crop of ML frameworks are, is this really a realistic expectation? Having played around with Julia and Flux for ML, I find I have to do just as much rewriting when translating e.g. TF -> Flux as TF -> PyTorch. You get some limited mixing and matching with Caffe2 <-> Torch and TF <-> JAX, but that breaks down the moment you leave a company's walled garden.

> I don't think that LLVM IR that uses is the best IR for the optimizations.

I think Chris Lattner agrees, which is why he also helped start https://mlir.llvm.org/. If anything, I predict we'll see more frameworks targeting it (prototypes for Numpy, PyTorch, TF and general XLA already exist). This implies that languages that target LLVM now will actually have a leg up because their compiled semantics can be more easily lowered to something accelerator-friendly.

comment 5y ago · link · parent

Well, it's happening: https://news.ycombinator.com/item?id=25128251
123456