Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lkuty
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
lkuty
3y ago
"Composition Intuition by Conor Hoekstra | Lambda Days 2023" ( https://www.youtube.com/watch?v=Mj8jxYS-hi4 ) is all about combinators.
92.
▲
by
lkuty
3y ago
You have also AsciiDoctor ( https://asciidoctor.org/ ) which is alive and well. I am using it for technical CS documentation internally, but only for single page documents. I did not try to deploy their whole multi-document
93.
▲
by
lkuty
3y ago
I recommend checking BQN at https://mlochbaum.github.io/BQN/ and the YouTube channel code_report by Conor Hoekstra (and also "Composition Intuition by Conor Hoekstra | Lambda Days 2023"). It is well documente
94.
▲
by
lkuty
3y ago
As Thích Nhất Hạnh said, it should not be seen as a suicide but as a way to draw the world's attention to the situation in Vietnam. The distinction is crucial. Cannot remember where I read it.
95.
▲
by
lkuty
3y ago
Didn't know nitter. It looks like it allows to search twitter without having an account which is cool since I deleted mine a few months ago because I could not find relevant information anymore (the browsing experience was such a PITA)
96.
▲
by
lkuty
3y ago
I agree 100%. I have been using the language professionally everyday for a few years now, having converted our Erlang system to Elixir and Phoenix. The language is a joy to use, the community is great and José is doing a fantastic job in a
97.
▲
by
lkuty
3y ago
What is reference [9] ?
98.
▲
by
lkuty
3y ago
That's what I miss these days. The barrier was low, you had access to it immediately and when using a computer from that era you were going to be exposed to that stuff. Now everyone has a smartphone but you cannot easily program with i
99.
▲
by
lkuty
3y ago
I use Magnet for that. But could probably put those key combinations into my hammerspoon config.
100.
▲
by
lkuty
3y ago
A bit more verbose but you have the full power of XQuery with you. XSLT however is more verbose than that like you mentioned. for $price in json-to-xml(unparsed-text($file))/map/map/number[@key="price"] re
101.
▲
by
lkuty
3y ago
In fact XQuery alone is enough, e.g. with Saxon HE 12.3. (: file json2xml.xq :) declare default element namespace "http://www.w3.org/2005/xpath-functions"; declare option saxon:output "method
102.
▲
by
lkuty
3y ago
You could use an elaborate filter with jq (see https://stackoverflow.com/a/73040814/452614 ) to transform JSON to XML and then use an XQuery implementation to process the document. It would be quite powerful, espec
103.
▲
by
lkuty
3y ago
And also https://github.com/adamritter/fastgron that I've just discovered.
104.
▲
by
lkuty
3y ago
Is the title grammatically correct ? A verb is missing, don't you think... My mother tongue is french, thus I may be missing some pun.
105.
▲
by
lkuty
3y ago
It is ok on M2 with macOS 13.6.1 (Ventura). Maybe there is something specific to Sonoma ? $ ./uname -sm Darwin arm64 ludo@mba in ~/Downloads/cosmos-3.0.1/bin $ ./python Python 3.11.4 (heads
106.
▲
by
lkuty
3y ago
You might wanna use Unhook.
107.
▲
by
lkuty
3y ago
And 1Password does not propose self-hosting anymore, which is why I am stuck to version 7 for my personal vault. At work, we use Bitwarden self-hosted solution. I could even use an encrypted text file to store my passwords if there were no
108.
▲
by
lkuty
3y ago
In Phoenix core_components.ex, you have an interesting way of dealing with common code and also keeping the valuable pattern matching with functions. This way of handling things may not be applicable to every situation. def input(%{fiel
109.
▲
by
lkuty
3y ago
It is the same function with different clauses using pattern matching. It is a powerful way of handling different cases. There is no overload at all. The concept does not exist in the language. And if the arity differs, then they are comple
110.
▲
by
lkuty
3y ago
Here is a better version that checks if expr1 is a variable. The condition "is_atom(x)" might be too strong. defmodule OurMacro do defmacro cond_assign(expr1, expr2, do: block) do case expr1 do {x, _, y} when
111.
▲
by
lkuty
3y ago
It looks very interesting. Might give it a try even if I am now used to my key combinations to get the accented letters.
112.
▲
by
lkuty
3y ago
The wish of the OP is to avoid writing "else myvar". You could write a macro I guess. Something like the one below. Not that I have named the macro cond_assign for conditional assignment but there is no real assignement in Elixir,
113.
▲
by
lkuty
3y ago
That's the sort of reason that made me switch to US Qwerty a couple of years ago and as a programmer I should have done that from the very beginning instead of staying on Azerty BE. The shortcuts of most programs have been thought for
114.
▲
by
lkuty
3y ago
The other book on Haskell by Richard Bird is also excellent: Thinking Functionally with Haskell ( https://www.cs.ox.ac.uk/publications/books/functional/ ).
115.
▲
by
lkuty
3y ago
Another tutorial. "Bezier Curves from the Ground Up": https://jamie-wong.com/post/bezier-curves/
116.
▲
by
lkuty
3y ago
Thanks. I read your other comments and it makes sense why it landed there.
117.
▲
by
lkuty
3y ago
I am not happy with the "joke" in the README and if I could I would report it but it looks like it doesn't fall into Github categorization of abuse. Keep your bad jokes to yourself, inside your head, where nobody can see them
118.
▲
by
lkuty
3y ago
IMO you need to see how the SELECT queries are 100% functional to understand properly the power of it which is based on its relational algebra and the closure property of that algebra. Then the basic relational algebra was augmented with a
119.
▲
by
lkuty
3y ago
Obligatory https://theoatmeal.com/comics/printers
120.
▲
by
lkuty
3y ago
You might want to read Drop Acid by Perlmutter, stuff about sugar by Robert Lustig and maybe Fiber Fueled by Bulsiewicz. They give pointers to why Alzheimer might happen in the first place and how to avoid it. Those are life-long advices.
More ›