Better HN
topnewbestaskshowjobs
Log inSign up

BadInformatics

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

Submissions

comment 5y ago · link · parent

I remember an interview [1] with him a few months back where he seemed to have stopped pursuing it after Chris Lattner's departure. Sylvain Gugger, who was pretty involved in fastai and prototyping a Swift port, also left to join Huggingface a while ago.

[1] https://www.youtube.com/watch?v=t2V2kf2gNnI

comment 5y ago · link · parent

Looks like @throw6606 was right: https://news.ycombinator.com/item?id=24533937. Does anyone know the status of https://ai.facebook.com/blog/paving-the-way-for-software-20-...?

comment 5y ago · link · parent

That's great to hear. I'd love to see the Bazel monstrosity that is Tensorflow XLA get easier to build because of Nx. Not holding my breath though!

comment 5y ago · link · parent

Pretty disappointing to see it using XLA. Anything Tensorflow is notoriously difficult to build on a local machine and generally considered a dependency nightmare. I would've thought libtorch bindings would be much easier.

comment 5y ago · link · parent

I know of at least one Canadian hospital that's incorporated ML into 100% of their ED triage. Sure it's not some state of the art deep learning architecture, but it's definitely a step above the old crop of heuristic-based systems you see so often in medical software. "Medical AI" is a stupid term that's been co-opted by more hucksters than legitimate practitioners, so I prefer to talk about more concrete (and less fanciful) applications like patient chart OCR or capacity forecasting.

comment 5y ago · link · parent

Don't get me wrong, Python is head and shoulders above Java/C# or C/C++ as a teaching language. The complaint is that, as the educator, lab/tutorial time is being wasted on trivial syntax issues that would be non-existent given a more lenient parser or better tooling (preferably the latter).

comment 5y ago · link · parent

Absolutely, I find this approach gets the right mental gears turning as well. The problem comes up most often with take-home assignments though, where students are more likely to copy-and-paste a couple lines from somewhere because you haven't given them a full program. If anything, an IDE might be better because it'll give more localized feedback and people are more likely to react to the red squiggles :)

comment 5y ago · link · parent

No, though I have plenty of anecdotes from friends who have. I agree that these apply regardless of language. Whitespace errors are arguably some of the more insidious syntax errors though, since most editors will not differentiate between spaces and tabs (e.g. vim's set list) and to the beginner programmer it doesn't feel like the number of spaces should matter (I'm indenting my blocks, why do you care how much?)

comment 5y ago · link · parent

I agree WRT block structure, but having TA'd a Python course that "should" doesn't survive contact with a real world classroom. Students will use anything from IDLE to Notepad to PyCharm, and usually shut down completely instead of trying to work things out when the code snippet they've spliced into their program from StackOverflow fails to run because of mismatching indentation. I'm not sure why few try to understand the SyntaxError messages, but it's like they don't exist!

Part of me wants to forbid all "dumb" text editors for introductory programming courses and make everyone use an AST-based one that only allows you to create syntactically correct programs. Unfortunately there's zero chance of that happening any time soon...

comment 5y ago · link · parent

IMO the bundling and curation is the least interesting part of Conda. What's really nice are the build infrastructure, quality checks and proper dependency bounds (looking at you, PyPI). Something like R's CRAN already has those without bundling.

comment 5y ago · link · parent

I remember a few years back when Nim was going to be the next big thing here, but unfortunately it never gained that level of traction. Still an interesting language even without bigco levels of support behind it.

comment 5y ago · link · parent

The type system is a lot less sound and expressive than even TypeScript's though, so it doesn't quite offer the same level of security. I find any doesn't tend to stick around long when I use TypeScript, but my Python projects are full of cast()s and Pyright ignore comments. Typeshed is nowhere as comprehensive as DefinitelyTyped either, but that's more of a community building problem.

comment 5y ago · link · parent

This is my biggest pet peeve with (dynamic) languages that don't distinguish between declaration and assignment. Python's drive to make type annotations look "nicer" certainly doesn't help either. `list[1, 2, 3]` feels a little too clever.

comment 5y ago · link · parent

I used it for a couple WPF apps (of all things) a couple years back. F# is so nice for anything with a good amount of "business logic".

comment 5y ago · link · parent

The FAQ [1] and this SO answer [2] explain it better than I can, but basically yes. However, the (de)serialization overhead is probably better than most alternative formats you could save to.

[1] https://arrow.apache.org/faq/ [2] https://stackoverflow.com/questions/56472727/difference-betw...

comment 5y ago · link · parent

Not sure I follow, that page indicates that JS support is pretty good for all but the more obscure features (e.g. decimals) and doesn't mention data visualization at all? Anyhow, I've successfully used https://github.com/vega/vega-loader-arrow for in-browser plots before, and Observable has a fair few notebooks showing how to use the JS API (e.g. https://observablehq.com/@theneuralbit/introduction-to-apach...)

comment 5y ago · link · parent

Is that a problem in the Parquet format or in PyArrow? My understanding is that Parquet is primarily meant for on-disk storage (hence the default on-disk compression), so you'd read into Arrow for in-memory compression or IPC.

comment 5y ago · link · parent

HDF5 is pretty terrible as a wire format, so it's not a 1-1 comparison to Arrow. Generally people are not going to be saving Arrow data to disk either (though you can with the IPC format), but serializing to a more compact representation like Parquet.

comment 5y ago · link · parent

https://arrow.apache.org/docs/js/ has existed for a while and uses typed arrays under the hood. It's a bit of a chunky dependency, but if you're at the point where that level of throughput is required bundle size is probably not a big deal.

comment 5y ago · link · parent

There are a fair few MPV GUIs out there. I believe Celluloid is available in the main Debian repos.

111.

How Do We Trust Our Science Code?(hillelwayne.com ↗)

3 points · by BadInformatics · 5y ago · 1 comment

comment 5y ago · link · parent

Having helped to clean up a couple of those messes IBM left behind in various parts of the Canadian public sector, the only silver lining I see is that governments are starting to take in-house dev talent and the digital service model seriously because nothing (in the best case scenario) gets done if you rely on IBM. Hopefully this trend continues and governments grow some teeth in contract negotiations because of it.

comment 5y ago · link · parent

In my limited experience and anecdata, governments have been so trigger happy in getting rid of and/or marginalizing technical staff that there are few qualified individuals in the procurement office who can properly draft RFPs and evaluate proposals to keep bidders accountable. What you're left with is mostly (M)BAs and admin types who can hammer out high-level Word docs of specs but not much else. In that environment, it's not surprising that Deloitte, McKessen, IBM and co (or as I like to call them, the Procurement Vampires) can lowball and BS themselves into these projects. If you don't know anything, better the devil you know, right ?

114.

What engineering can teach (and learn from) us(hillelwayne.com ↗)

2 points · by BadInformatics · 5y ago · discuss

comment 5y ago · link · parent

For sure, and one would be remiss not to mention Dylan, CL/CLOS and Clojure here as well. My quibble was with the claim that multiple dispatch rarely shows up in practice, which you've pretty clearly shown is not the case in R!

comment 5y ago · link · parent

If NLP primitives are all that's keeping you from testing the waters, have a look at https://github.com/chengchingwen/Transformers.jl.

comment 5y ago · link · parent

> is this really a problem that I'm going to come across in the real-world when 90% of our time is spent ingesting a poorly-formatted csv, doing some quick plots and perhaps building a model to test something out

Yes, multiple dispatch is not some highfalutin ivory tower concept that only comes up in specialized code. For example, the model in question could define custom plotting recipes[1] so that you can just call plot() and have it produce something useful.

Also, why shouldn't dplyr perform comparably against data.table? Seems like there would be no need for a fragmented library ecosystem here if the abstractions the tidyverse is built upon were lower-cost. Moreover, what if my data isn't CSV or in a table-like shape at all? "real world" does not mean the same thing across different domains.

[1] http://docs.juliaplots.org/latest/recipes/

comment 5y ago · link · parent

> Julia is a growing alternative to Fortran/C/etc for long-running computations, it remains awkward and unpleasant for interactive analysis

Did you mean to write short-running scripts? If anything, the Julia dev workflow is biased towards interactive analysis in a REPL a la R or IPython/Jupyter. I don't mean to imply that there's no startup overhead, but how often are you restarting the REPL when doing EDA? Unless it's more than once every few minutes (which is a very odd workflow), then startup overhead is effectively amortized.

> A real strength of R (in comparison not just to Julia but also to python) is that such a repository exists

CRAN is certainly a cut above many other package repos here, but I'm not sure "trust their tools" can apply to all packages on there. Anecdotally, I've had a lot of issues with compiled dependencies and missing/out of date external assets on less well-trodden packages. There's a reason MRAN, Conda and JuliaBinaryWrappers exist after all.

For whatever reason, Julia package maintainers also seem more receptive to making their work compatible with other libraries as well. This goes beyond just multiple dispatch as well--imagine if tidyverse/non-tidyverse wasn't such a hard split.

119.

Testing out Algebraic effects in OCaml for Animations(gopiandcode.uk ↗)

1 points · by BadInformatics · 5y ago · discuss

123456