Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
KayEss
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
KayEss
7y ago
> Some people think that a day is one revolution of Earth's axis, and not exactly 86400 seconds One day is more than one revolution of the planet. The sidereal day is exactly one rotation of the planet, but that's about four mi
32.
▲
by
KayEss
7y ago
I was wondering what happens if you skip the SNI bit and just rely on the Host header in the data. Does that work?
33.
▲
by
KayEss
7y ago
Not too surprising I think. The charger is 135W https://www.lenovo.com/us/en/laptops/thinkpad/thinkpad-x/Thi...
34.
▲
by
KayEss
7y ago
Yes it does.
35.
▲
by
KayEss
7y ago
I get my X1 Extreme on Sunday -- had to order through a friend in the UK because the price in Thailand is nearly 2 times the UK one and in any case nobody has one. Been a big fan of the thinkpads for 20 years. All of them very solid machine
36.
▲
by
KayEss
7y ago
I think the closest you can get is something like: class odd {...}; class even {...}; std::variant<odd, even> p(int a) { if (a&1) return odd{a}; else return even{a}; } Now which of `even` or `
37.
▲
by
KayEss
8y ago
My ~/bin/makepass file: #! /bin/bash cat /dev/urandom | base64 --wrap ${1:-"10"} | head -n 1 Defaults to 10 character passwords, but you can put bigger numbers as the first argument. I do
38.
▲
by
KayEss
8y ago
We're experimenting with Mermaid diagrams < https://mermaidjs.github.io/> in our source code. How does that come across?
39.
▲
by
KayEss
8y ago
LOL
40.
▲
by
KayEss
8y ago
What is the observable effect then? I can really only think of two: A particular performance characteristic, or that modifications of shared tails in lists are observable across lists. Is this latter that is the problem?
41.
▲
by
KayEss
8y ago
Lambdas have an un-utterable type, so the addition of a template like mechanism in their arguments is something the compiler can do behind the scenes and it all just works. Look for "generic" in this page < https://en
42.
▲
by
KayEss
8y ago
The auto there works like a templated function would (except it's anonymous as you'd expect from a lambda).
43.
▲
by
KayEss
8y ago
Ah, that's really interesting. This one only has a single namespace, but the one I simplified it from actually has two. I guess that makes that one a Lisp 2 :-)
44.
▲
by
KayEss
8y ago
Follow the link to the Gist < https://gist.github.com/KayEss/45a2e88675832228f57e2d598afc0... and your code editor should give you the comment folding you want.
45.
▲
by
KayEss
8y ago
Yeah, it's deliberately simplified in order to keep things short and sweet. Maybe I'll write some more posts that extend this into a real language and then these things will come out. I really wanted to show that core part of a pr
46.
▲
by
KayEss
8y ago
Part of the motivation for writing this up is to explain internally about a DSL used for testing web APIs, for example: < https://github.com/KayEss/fostgres/blob/master/Example/films... I expect w
47.
▲
Build me a Lisp
(kirit.com)
127 points
by
KayEss
8y ago
|
68 comments
48.
▲
by
KayEss
8y ago
The word "revolution" is probably the most deeply ironic one in the whole of the English language. You fight and die to overthrow the oppressor only to end up back where you started.
49.
▲
by
KayEss
8y ago
> If the complexity can be reduced (by say, adding garbage collection) Adding a garbage collector would make code more complex, not simpler, as it would break RAII. I spend a lot more time dealing with memory and resource allocation issu
50.
▲
by
KayEss
8y ago
The thing I disliked about it is that the APIs were very ugly. We ended up building our own tool that allows for much nicer APIs to be built: < https://github.com/KayEss/fostgres>
51.
▲
by
KayEss
8y ago
With the instance types they're using the migration isn't really an option because the point of the i3 instances is the locally attached NVMe SSD disks where the database files are.
52.
▲
by
KayEss
8y ago
And then some idiots do a referendum and the state ends up voting itself out of the union?
53.
▲
by
KayEss
8y ago
That depends on the nature of the program. We use error and critical for server software. If there is a protocol violation on a particular connection, log an error and drop the connection, but otherwise continues. If the `accept` system cal
54.
▲
by
KayEss
8y ago
Useful when you have a lambda that needs to call itself, but the language doesn't bind the name until after the lambda is parsed (so you can't call by name). This happens in a few languages I think, C++ and C# for sure.
55.
▲
by
KayEss
8y ago
> Deleting years of stuff that might not exist in other places would certainly be much more draconian. This is exactly what the report says they did. The original post may exist on Twitter, but the conversation that happened on Facebook
56.
▲
by
KayEss
8y ago
I've been playing around with a slightly different non-OO approach. The use of sum and product types taken more from functional programming. You can see some of the results here: < https://github.com/KayEss/AnimR
57.
▲
by
KayEss
8y ago
Central locking: if you're in the centre of the car yu can lock all the doors.
58.
▲
by
KayEss
8y ago
I don't think that is what the article is arguing for. There it would be more akin to "absolutely limited to" as they don't want anything outside of the examples. Unfortunately for them the examples are still open enough
59.
▲
by
KayEss
8y ago
Here in Bangkok the size of the (already legendary) traffic jams is certainly a great proxy for the economy as a whole.
60.
▲
by
KayEss
8y ago
And "an ewt" became "a newt", so it goes both ways.
More ›