Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
elbear
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
121.
▲
by
elbear
2y ago
Yeah, it's due to something in my config.
122.
▲
by
elbear
2y ago
Interesting. That tells me there's something wrong with my neovim config. When I open a file for the first time, it takes some time before it shows the contents of the file. It's not even a big config, but maybe I'm using a p
123.
▲
by
elbear
2y ago
Do you have problems with Poetry? If not, don't switch
124.
▲
by
elbear
2y ago
Thank you!
125.
▲
by
elbear
2y ago
The book you linked sounds awesome. Too bad about the price.
126.
▲
by
elbear
2y ago
Can you explain why? Because I still don't get the point the article is trying to make. To clarify what I do understand: so you have the variable, like height, and all its possible values along with their probabilities (that's the
127.
▲
by
elbear
2y ago
Funny coincidence. A few days ago I was reading a blog post also about the Visitor pattern in Java, but in the context of recursion schemes (category theory): http://logji.blogspot.com/2012/02/correcting-visitor-pa
128.
▲
by
elbear
2y ago
Your comment gives better reasons than the article for not using LangChain.
129.
▲
by
elbear
2y ago
It would have been great if the article provided a more realistic example. The example they use is indeed more complex than the openai equivalent, but LangChain allows you to use several models from several providers. Also, it's true t
130.
▲
by
elbear
2y ago
I found it weird as well to see that. I didn't know LangChain overrode Python syntax. But, if you're familiar with Linux/Unix, this should be familiar. You are piping the output of one function as the input of another functio
131.
▲
by
elbear
2y ago
You mean there should be a general solution (not just pairwise) or none at all?
132.
▲
by
elbear
2y ago
Ok, I had a better look at the code and I realised that it doesn't follow the rule I was talking about, namely having the function only work on values it receives as inputs. I think that's why I don't use closures, because th
133.
▲
by
elbear
2y ago
Ok, the Wikipedia definition of pure function is more strict and than what I was saying and I think it covers the issues you mentioned: https://en.wikipedia.org/wiki/Pure_function
134.
▲
by
elbear
2y ago
Doesn't that example also show a kind of laziness? I say this because the second solution to that question offers the solution of using `i` as a default argument when defining the function. That forces its evaluation and fixes the prob
135.
▲
by
elbear
2y ago
Ok, you're probably proving the point that purity also requires immutability. I'm not sure, as I haven't considered all the implications of Haskell's design. My two rules about inputs and outputs are more like heuristics
136.
▲
by
elbear
2y ago
I gave it some more thought. I now believe that learning a language like Haskell (or Elm or PureScript) forces you to see your program as pipes that you fuse together. It's not just functions. Haskell has only expressions and declarati
137.
▲
by
elbear
2y ago
So, another definition of a pure function is that, for a particular input it will always return the same output. Your example respects the rule: f({x=1}) == 1 f({x=2}) == 2 But it's true that the two rules I gave are not e
138.
▲
by
elbear
2y ago
It seems you only focused on one of the conditions I mentioned. You have to follow both rules: the one about inputs and the one about outputs. This is like a contract. If you enforce it throughout your program, you gain some guarantees abou
139.
▲
by
elbear
2y ago
What's the benefit? You start to see functions as self-contained things, as lego blocks. All the logic of the function is there in the function. It only works on values it receives as inputs (it can't read global variables). It on
140.
▲
by
elbear
2y ago
I think all the reasons can play a part but may weigh differently for different people.
141.
▲
by
elbear
2y ago
A different way to put it: many people understand the what some understand the how fewer understand the why Or, put in a different way: many people understand the API; some understand the implementation, and fewer understand the constraints
142.
▲
by
elbear
2y ago
I appreciate you answering, unlike many people who post here.
143.
▲
by
elbear
2y ago
In Romania it's 24.7%
144.
▲
by
elbear
2y ago
I've been seeing your job ad in the last few hiring threads. Are you willing to share whether you are finding it difficult to find someone or it's the fact that your services are in demand, so you need to expand your team? Disclos
145.
▲
by
elbear
2y ago
In the case of remote, do you only hire in the countries that you have an office, or do you also hire from other countries in Europe, for example?
146.
▲
by
elbear
2y ago
It looks like it's not available to everyone. I don't see it in the list of models. It shows me 41 models, if that matters. Edit: It's actually available in the dropdown.
147.
▲
by
elbear
2y ago
Nix with direnv does that, but without Docker.
148.
▲
by
elbear
2y ago
Frankly, it sounds like a dream job for me too, to be responsible for a particular technology and make sure that it works for all your internal (and external) users.
149.
▲
by
elbear
2y ago
I agree. Python is not consistent, probably because features kept being added. Ruby is a little younger though, so its creator could use lessons learned from its predecessors.
150.
▲
by
elbear
2y ago
Why do you think that is? Do you think their culture is an obstacle or is it something else?
More ›