3,234 karma · joined Feb 3, 2012 (14y ago) · 682 submissions
comment 5y ago · link · parent
comment 5y ago · link · parent
https://github.com/JuliaLang/julia/issues/40190
Edit: it's now building:
https://github.com/JuliaLang/docs.julialang.org/runs/2196972...
comment 5y ago · link · parent
comment 5y ago · link · parent
8.
Julia 1.6 Highlights(julialang.org ↗)
410 points · by mbauman · 5y ago · 214 comments
comment 5y ago · link · parent
2015: https://news.ycombinator.com/item?id=9315152
comment 5y ago · link · parent
In my view, it's not multiple dispatch per se that is the bigger departure from traditional OOP, it's the fact that methods are no longer contained in the classes. Julia draws a separation between data (structs: the nouns) and behaviors (functions: the verbs). Traditional OOP never really made sense to me; why should each class define and own its own methods? It feels far more sensible to me to just have global behaviors that are well defined. Those verbs can sometimes apply to _anything_ (leaning on more rudimentary operations that you need to define; duck-typing), and sometimes they require you to explicitly define your behavior, and sometimes you just want to add an additional optimization that's available in your particular situation.
Once you have that mental model down, multiple dispatch is just how Julia chooses which method to call... and it's really not much different from single-dispatch.
comment 5y ago · link · parent
https://www.nature.com/articles/s41928-020-00523-3
Abstract:
> Resistive memory technologies could be used to create intelligent systems that learn locally at the edge. However, current approaches typically use learning algorithms that cannot be reconciled with the intrinsic non-idealities of resistive memory, particularly cycle-to-cycle variability. Here, we report a machine learning scheme that exploits memristor variability to implement Markov chain Monte Carlo sampling in a fabricated array of 16,384 devices configured as a Bayesian machine learning model. We apply the approach experimentally to carry out malignant tissue recognition and heart arrhythmia detection tasks, and, using a calibrated simulator, address the cartpole reinforcement learning task. Our approach demonstrates robustness to device degradation at ten million endurance cycles, and, based on circuit and system-level simulations, the total energy required to train the models is estimated to be on the order of microjoules, which is notably lower than in complementary metal– oxide–semiconductor (CMOS)-based approaches.
17.
The team shaking up climate models(csmonitor.com ↗)
1 points · by 3JPLW · 5y ago · discuss
comment 5y ago · link · parent
Citation needed. Yes, the -1 appears in the source code. It might even appear in the intermediate representation. It'll even show up in the assembly for multidimensional arrays (but it'll all get folded into a single `mov` assembly for vectors).
But I dare you to actually demonstrate a performance difference. Compared to a memory access, a `dec` is free.
comment 6y ago · link · parent
- wash your hands
- wear a mask
- practice social distancing
- avoid extended periods indoors with non-household members
https://www.cdc.gov/coronavirus/2019-ncov/prevent-getting-si...
comment 6y ago · link · parent
I'm not "free" to start cooking commercially out of my home kitchen without inspections and licensing. This impacts my ability to earn an income -- because otherwise I might make you sick.
It's public health risk mitigation. We do it all the time.
comment 6y ago · link · parent
https://english.elpais.com/society/2020-10-28/a-room-a-bar-a...
comment 6y ago · link · parent
https://twitter.com/StefanKarpinski/status/12929837172128931...
Since then, GCC has stepped up with this out-of-tree build, but it's still not 100% to my knowledge.
comment 6y ago · link · parent
> That 1948 study of 43 machines in Detroit showed ranges from 16 to 75 roentgens per minute. In 1946, the American Standards Association had issued a safety code for industrial use of X-rays, limiting exposure to 0.1 R per day.
I'd be curious how much a typical modern dental x-ray emits, but we no longer measure in roentgens these days as we have better measures of the actual dose (sieverts).