HNHacker News
TopNewBestAskShowJobs

el_oni

386 karma · joined July 12, 2020

Easily distracted and hardly motivated
submissionscomments
el_oni··on Fq: Jq for Binary Formats
I wouldnt even say the are necessarily competitors. More like a flathead screwdriver to compliment your phillips in most of those cases
el_oni··on Why F# evangelism isn't working (2015)
The abandonware is the problem i have with all the niche languages I enjoy using. If you go down the communities "hot path" there are usually well maintained stuff. But the second you want to go off the path you find a lot of libraries not maintained for a few years. I like to think "oh the library is just complete", but you then use them in your project and get crashes. And i don't think i'm good enough yet at the language to go in and fix the problems.
el_oni··on Why F# evangelism isn't working (2015)
Sounds like missing the tree for the forest. Im not from a pure cs background (so forgive my mangling of terms) but isnt a tree essentially an acyclic graph with constraints, 1 parent 2 children for example? What you're describing is adding some cycles into that graph no?
el_oni··on One million cancel broadband as living costs rise
And that's fine if the median salary increased by 7% a year (hint: it hasn't)

The houses here used to be affordable for a middle income person or family. Now they aren't, that's the issue, not the sticker price.

edit tldr:

At the same time houses have gone up in price, wages have stagnated, rent has increased and inflation has increased. So we earn the same, pay more for rent, utilities and food, and have to save more (10% deposit is usually the minimum).

el_oni··on One million cancel broadband as living costs rise
House prices are awful, and with the current mortgage rates it makes it even harder. Last July when we first started looking at what sort of deposit we would need and how much mortgage payments would be it looked like we would be spending an additional £400 a month (which is fine, I wouldn't have to save for a house after all). But since the catastrophic economic policies of our shortest term prime minisiter we would be paying an extra £1000 a month over our current rent.

The house 2 doors down was last sold for £80k about 20 years ago. The house over the road that has just gone up for sale is asking for £300k. I'm lucky that my salary is over the median, but a 3-bed semi detached is like 10x the median salary (£26k). The same sort of property that my parents generation bought for 5x the median salary back in the 90s.

el_oni··on Erlang/OTP 26 Highlights
I beleive there is currently a PhD project in collaboration with Jose Valim (Elixir's creator) which is looking at distributed machine learning.

There is also the NX project (numerical elixir) which compiles tensors to GPU code making it much faster for those particular usecases. https://github.com/elixir-nx This has things like explorer which is elixir bindings to polars, livebook which is like jupyter notebooks (with enforced execution order thang god), aswell as some machine learning libraries in axon and scholar.

There has also been some work with libraries like flow and broadway which allow pipelines to be constructed with the usual syntaxt `step1 |> step2 |> step3` but to be executed across cores (or cluster).

I can imagine orgs using a combination of the above tools to do some interested distrubuted data pipelining and ML.

el_oni··on Erlang/OTP 26 Highlights
It's incredible for IO. It's not amazing at tight loop CPU intenstive tasks, but elixir and erlang do make it really easy to take something sequential and spread it across all cores (or across a cluster if you're so inclined).

It does have good FFI, like rustler for the elixir is great. It makes sure rust panics unroll into elixir exceptions and that takes some of the scariness of writing them.

That plus dirty schedulers means you don't have to be a good citizen and can write cpu intensive code in a faster language.

el_oni··on VSCode config to disable annoyances – telemetry, notifications, welcome pages
Preach, maybe there is a way to alter the "template" launch.json
el_oni··on Gandalf – Game to make an LLM reveal a secret password
I got through rounds 3, 5 and 6 with just a " character. It then constructed a quote where it said things like "i understand that the password is X and should not be revealed to anyone". It was a bit flakey, sometimes it told me it knew i was trying to get around it
el_oni··on Show HN: Build progressively enhanced reactive HTML apps using Go and Alpine.js
That's because there are hundreds of people coming from hacker news clicking the button. if you just refresh the page you can see the number change. The current total seems to be saved server side
el_oni··on Science is a strong-link problem
The last paper I published came back with 4 reviews comments:

review 1: This is important for the field, fix x, y and z and it should be ready to publish

review 2: This adds absolutely nothing, they are missing references from research group a, research group a, research group a.

review 3: Looks good, fix a, b, and c, and add references to research group b, research group b, research group b.

review 4: looks good, but figure x doesn't seem to show what you say it does, fix it or the caption.

From there it was actually fairly simple to see who was reviewing based on which papers they said we were missing. With research group A in particular, they were working on similar stuff so we think we may have scooped them. But that's also a bit of the problem with reviews, subject matter experts are probably also doing similar research. And if they have a big ego it can potentially hamper work by other groups getting published.

el_oni··on Don't write clean code, write CRISP code
True, but then you also get times when somebody who should know better implements a "in current financial year w/ special cases" function 3 times.

Then your tester says it isn't correct in 2/3 places, you find out you've only updated the function in 1 place and either abstract those the other 2 cases out or update it in those 2 places aswell.

el_oni··on Ask HN: Fastest way to turn a Jupyter notebook into a website these days?
Bit of a tangent, but one of the things I really like about livebook[0] is that the documents are just markdown, and the codecells are literally just ```elixir``` blocks which make it quite nice to read and very version control friendly.

[0] https://livebook.dev/

el_oni··on His software sang the words of God, then it went silent
I was on a comittee organising about 8 years back for the southern universities latin and ballroom competition, so not a professional one, but also not profit making.

The full day cost around £6200, that included music, demonstration couple, compare, 6 judges, food, first aiders, venue hire, officials, trophies, medals, programmes, decorations. We then charged around £12.50 entry for ~500 students.

The national competition for universities happens in blackpool every year and I imagine the costs are around 3-4x that considering the venue and number of officials. And unless we got discounts for being universities, or the judges are paid less, i imagine it costs at least £28,000 to put on a big professional competition.

In a comparable venue to the winter gardens in blackpool

el_oni··on Making Python faster with Rust
academic for CS maybe. Not so much for chemistry, biology etc. If you work in computation areas of those subjects you are more likely to know matlab, R, python and maybe Julia.

I didn't know of anybody who had done any Lisp or Ocaml in my time in academia (in chemistry, chemical engineering and biology departments), but that's just 3 universities, and i certainly didn't know everybody.

el_oni··on Making Python faster with Rust
This is how I got into software development.

During my PhD I was running some simulations using poorly written python code. initially it would take several hours. In that time i could go to the lab, run some wetlab experiments and the results of my simulations would be there when i got back to the office. It was only taking python "home" and building some of my own projects that i learned how to 1. write more pythonic code and 2. write more performant code. Now i work for a software company.

If i'd have stayed in in academia I would probably still be writing quick and dirty code and not worrying about the runtime because as a researcher there is always something else you can be doing.

el_oni··on Is Software Getting Worse?
I've recently been able to work on performance for our product mainly because our tester has been complaining that it takes too long to run all of the integration tests.

I got to dig in to some hotspots in our code, some hotspots in the test suite code and speed things up significantly. It's incredibly rewarding work. But as the blogpost says, you need to know how things work (and get good measurements) to be able to make a difference. Knowing what tradeoffs to make, such as caching things to trade off memory usage for computation vs reworking algorithms to be more effecient in the first place, is tricky and not something you can necessarily hand over to a junior dev.

el_oni··on The Jupyter+Git problem is now solved
I like to use vscodes code blocks.

Add in # %% and it makes the code executable in isolation. Like a cell in jupyter. This means i can write a py file. Execute bits indepentantly and when im ready to check it in just remove the block comments

el_oni··on Meatless meat is nothing new
Probably the economies of scale that come from factory farming of animals. Vs the lower volume production of plant based meats.

The fact that its a dietary choice typically made by those who are more affluent and they are willing to pay for it.

el_oni··on Choosing Julia, Matlab, Python or R in economics?
Ahh my apologies. Shows my lack of domain knowledge.

Looking at some child comments it looks like there have been attempts to get it added to scipy since 2016.

el_oni··on Choosing Julia, Matlab, Python or R in economics?
Wrt the python package. Scipy has binomial and poisson classes [1,2]. I don't know if these fit the bill?

[1]https://docs.scipy.org/doc/scipy/reference/generated/scipy.s...

[2]https://docs.scipy.org/doc/scipy/reference/generated/scipy.s...

el_oni··on Writing my PhD using groff
I wrote my thesis in Word (graduated last friday, vivad last march). The key to stop things moving around in word is to use the "in line with text" option for images. And treat images like text. If you want it centred then justify it to the centre, dont try to place things manually.

Previous documents ive written with word i would do things like tight layouts on images, maybe with anchors, but that's a recipe for things moving around.

When i came to compile my chapters to a final document i used master document-subdocument to pull everything together. I only had a few issues with blank pages being added when exporting to pdf and that was due to my use of page breaks and section breaks.

el_oni··on Windows 95 in Electron
This is great, can you install other software on it?

If so it would be actually quite useful in science where old computers are used because of old software used to run old instruments. The old GC-FID i used during my PhD ran on windows 95. If that software could run on electron they could actually get some modern hardware to run those old machines

el_oni··on My favorite Erlang Program (2013)
I love this demo, it what got me to pick up Sasa's book.

I was attending a show and tell following seeing this where an engineer was trying to isolate failure of certain functions from the rest of the system and i sent this to them.

No idea if they watched it but i became an OTP evangelist in that moment

el_oni··on Gold Grows On Eucalyptus Trees (2013)
Well thats just the thing, if a gold atom were to replace say a copper atom in the active site of an enzyme, it would behave differently and more than likely in a deleterious manner.
el_oni··on Gold Grows On Eucalyptus Trees (2013)
Thats not true. Gold won't patina but it can react with things. It can replace other metals in key enzymes which will inhibit their function. You can also use it as a catalyst both heterogeneous (as nanoparticles) and homogeneous (as an organometalic complex).
el_oni··on Practising Programming
Yeah, when i practice programming its normally a toy version of something thats been bouncing around my head for an actual project. And normally something that i would like to learn for myself or a curiosity about how something works.

Generally outside of work hours I'll throw together a vague example and validate that the idea is something that works and get vaguely familiar with the libraries involved. That way when I go to build it at work I don't start from zero. If its for a personal project i just noodle in a repl or ide on a branch

el_oni··on A day after he bought electric scooter, man killed in battery explosion
Yes and no, the exothermic reaction ignites the electrolyte solvent, usually a blend of organic carbonates (depending on the type of battery). So it's almost a liquid fire, a chemical fire and an electrical fire all in one. It doesnt have an oxidizer, but the chemicals do contain oxygen. But ultimately there are 3 ingredients needed for a fire, fuel, oxygen and heat. An extinguisher targets two of these by cooling it down and limiting oxygen.

The exothermic reaction will also slow down when cooled which will further help contain the problem

el_oni··on Launch HN: Carbon Crusher (YC W22) – Carbon Negative Roads
Its a complex highly aromatic (in the chemistry sense) large molecule that there is active research in trying to convert to useful chemical products.

However it's quite difficult to break its bonds in ways that yield useful compounds. And until there is a viable way of upcycling it, burning it for energy is what they do

el_oni··on The Nintendo Switch has now outsold the Wii
Before i started work i would sit in the car while my partner was getting treatment and play switch. When she came back to the car between appointments we could play mario kart. Such a good system
← PreviousPage 3 of 6Next →