Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
el_oni
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
el_oni
3y ago
They have really great pensions and mat/paternity leave and those sorts of benefits. You get some lifers that work there but they also get a lot of contractors and people that leave after a few years for a private sector job with more
32.
▲
by
el_oni
3y ago
Odinlang is a language in a similar space that seems to have first class support for matrix and vector operations. As well as having built in support for various graphics apps [0]. Seems like there is a bunch of interesting low level langua
33.
▲
by
el_oni
3y ago
You can write custom guards out of any built in function that can already be used in a guard. Like defguard is_list_or_even_int(val) do is_list(val) or (is_integer(val) and val % 2 ==0) end
34.
▲
by
el_oni
3y ago
tomatoes tend to lose flavour and texture if refigerated. but refrigeration tends to extend shelf life. The other factor is that tomatoes that ripen on the vine tend to be tastier than tomatoes ripened off the vine. However fully ripe tomat
35.
▲
by
el_oni
3y ago
I do this with bread baking, if it looks ready, temp it. If it's below ~90C i'll tent it with foil to stop the top from burning but let it get up to temp.
36.
▲
by
el_oni
3y ago
the lsp (or maybe it's my editor) will also automatically do a closing `end` for every `do` similar to autobraces where typing an open `{` will automatically add a closing `}` it means that most of the time i don't think about `en
37.
▲
by
el_oni
3y ago
well this changes things. Thanks for the tip!
38.
▲
by
el_oni
3y ago
That's not Brady, it's Mike
39.
▲
by
el_oni
3y ago
I begrudgingly agree. We tried to stand up a spark cluster and there are just loads of configuration and little niggles that just get in the way, like making sure everything on your cluster has the libraries they need. Putting it on databri
40.
▲
by
el_oni
3y ago
Well, this isn't the only way to do things. There are exceptions in elixir and you can catch them if you want. But most functions that can fail have two versions File.read() returns {:OK, contents} or {:error, reason} So you can patter
41.
▲
by
el_oni
3y ago
In the examples yes, because it's just a simple binary ok or error case but if you returned a list you can pattern match on an empty list, a single element list or a list that's longer. which you wouldn't do with exceptions i
42.
▲
by
el_oni
3y ago
The file handle is the PID of the process that opened the file, it monitors the process that asked for the file to be opened. and if that process goes down the file will be closed. You can also add an else in the with so it looks like
43.
▲
by
el_oni
3y ago
The file handle is the PID of the process that opened the file, it monitors the process that asked for the file to be opened. and if that process goes down the file will be closed. You can also add an else in the with so it looks like
44.
▲
by
el_oni
3y ago
I really like things like this. There is a python talk called "so you want to be a python expert" and i think i watched it every 6 months for the first few years of my journey and each time i realised i got more and more of it. I&
45.
▲
by
el_oni
3y ago
Elixir has a nice take on this with the `with` keyword/macro with {:ok, file_handle} <- File.open(filename), {:ok, contents} <- IO.read(file_handle), {:ok, parsed} <- MyModule.parse(contents) do
46.
▲
by
el_oni
3y ago
I work better when I have a deadline, but i also expect my manager to allow for slippage if something is wrong with the product. Currently we have an issue where we are telling the customer that we need a 4 week pilot to make sure that when
47.
▲
by
el_oni
3y ago
Erlang and Elixir are what could be called pragmatic FP. The idea is that your base abstraction should be functional, you can then have a genserver for that abstraction which is stateful. So let's take lists for example. Building up a
48.
▲
by
el_oni
3y ago
We hate you when the bug reports roll in, but appreciate you when the product ships in a much cleaner state
49.
▲
by
el_oni
3y ago
That is really neat! I suppose the only downside of using the same code is it has the same bugs (e.g. I forgot to strip whitespace before doing a length check). So you don't get a belt and braces of having two lots of independently imp
50.
▲
by
el_oni
3y ago
Another reason this is cool along with the other comment. Is that rustler will stop errors from crashing the BEAM. If you implement a NIF in C and you panic then the erlang VM will crash bringing down everything. If you do it in rustler the
51.
▲
by
el_oni
3y ago
There are some materials like this, it's called negative thermal expansion in materials science, the wikipedia page [0] on it has some examples of materials where this is the case. [0] https://en.wikipedia.org/wiki/
52.
▲
by
el_oni
3y ago
Yes for polars in python. This was an issue I had with explorer in elixir. There is no elixir binding to the str.slice or str.extract functions yet
53.
▲
by
el_oni
3y ago
Thanks José! Yeah I noticed that, it looks like the numeric manipulations are well represented, less so for strings. I'll dig out the the code later on and get an issue raised.
54.
▲
by
el_oni
3y ago
I found explorer quite frustrating. I've used polars in python and loved it, but I brought in some financial data and couldn't strip off "£" from the start of a string so I could go on to cast it to a number. As far as I
55.
▲
by
el_oni
3y ago
I worked in an office with about 8 other PhD students, was in a research group with another 10, and was friendly with another 10-15. Social skills weren't lacking that much (don't get me wrong, we were a bunch of weirdos by some s
56.
▲
by
el_oni
3y ago
yeah, I finished mine in 2021. It took me 5 years (had a year off for extenuating circumstances) 3 years of lab work + 1 year off + 1 year writing up. We didn't get any papers out during my actual time there, I wrote up a bunch of my r
57.
▲
by
el_oni
3y ago
Which elixir repo? the elixir-lang repo last had a commit 3h ago. the phoenixframework repo was update last week
58.
▲
by
el_oni
3y ago
What a bullshit take. Employees only tend to unionize when companies don't give a shit about them. Companies that treat employees like people and pay them fairly have much less to worry about
59.
▲
by
el_oni
3y ago
My quick skim looks like its more like XPS or XAFS or XANES. Mixed with AFM
60.
▲
by
el_oni
3y ago
I've commented on a similar topic before about knowing who the reviewers were based on their comments and papers they recomend we cited. But as for the papers being inscruitable, i think part of that is just that the domain has it'
More ›