Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tinco
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
81 ms
·
961.
▲
by
tinco
5y ago
You can't do that in idiomatic JavaScript, at least I've never done such a thing in the past 15 years. Maybe you could share an example to show me?
962.
▲
by
tinco
5y ago
> If you read some file (or remote URL) multiple times, you may get different data each time. True, but just like in Haskell that data is not returned by the function, JavaScript functions are pure for I/O.
963.
▲
by
tinco
5y ago
> That's a pretty big "except" - there are no side effects except for all the side effects (and there's nothing unique about JavaScript there, that much is the same as almost any other language) It's not like Has
964.
▲
by
tinco
5y ago
Alright, but you were praising the article for conveying the meaning of the words, when those meanings are useless without some sort of interesting application. I believe people find monads difficult to grok not because the definition is ha
965.
▲
by
tinco
5y ago
> But the interesting part of Haskell's I/O isn't the implementation, it's the (pure) API that it uses, and Javascript has nothing like that. No, I insist JavaScript really has a pure approach to I/O, quite like
966.
▲
by
tinco
5y ago
It's not an artificial barrier, you just didn't learn anything useful yet. So now you know what the words mean, but they mean super mundane stuff that you've probably dealt with a hundred times. You already knew how to use ma
967.
▲
by
tinco
5y ago
Not exactly. When using the I/O monad in a pure language like Haskell, your code doesn't directly have side effects, instead you're building a container (a monad) of instructions of what side effect having operations to do, a
968.
▲
by
tinco
5y ago
Except that it might be, because if people knew how to do it, they would have for the past 20 years that ECS have been implemented in the games industry that is notoriously focused on memory locality optimisation. (not that I'm advocat
969.
▲
by
tinco
5y ago
It's specifically archetype based ECS that's been patented. Like (seemingly) everyone else in gamedev, I've implemented ECS multiple times over the past 10 years. The last time I did it was in Rust, trying to be the first to
970.
▲
by
tinco
5y ago
If you have to depend on Node.JS to run your service, it's a red flag. Still I'm seriously considering Node.JS for every backend project we start, just because it's so much easier to hire for, and the ecosystem is so healthy.
971.
▲
by
tinco
5y ago
Why would you do it in Rust if you can do it in Go? Was there some realtime constraint in making the web request?
972.
▲
by
tinco
5y ago
That really is mischievous, as a kid I'd play around on the schools computers which I felt were fair ground, though the headmaster would probably disagree. The only time I was really confronted was when I was warcycling around town, fo
973.
▲
by
tinco
5y ago
Not disputing that Created Tech is right, but the origin of the crack in the law firm's picture is precisely in the center, near where the camera is. That suggests to me that the crack came from a manufacturing defect, but to know for
974.
▲
by
tinco
5y ago
I was wrong, I'm not using fuse, but instead the kernel cephfs implementation. That article considers vfs_ceph to be legacy, and instead recommends to use the regular mount, but then does recommend to install samba-ceph and gives a con
975.
▲
by
tinco
5y ago
The former, thanks! I didn't know about vfs_ceph, I'll check it out! And thanks for your work on samba, it really is great and it's really enabling our way of working.
976.
▲
by
tinco
5y ago
Thanks! I've had this recommended to me before, I'll have to check it out sometime.
977.
▲
by
tinco
5y ago
I'm getting terrible performance exposing CephFS over samba, I wonder if this might solve those issues as well.
978.
▲
by
tinco
5y ago
REST has 6 constraints, the 6th constraint has 4 elements, the last of those four is a useless thing called HATEOAS. If you call your API REST, some zealots will open up your API and look if your beautiful response is polluted with any &quo
979.
▲
by
tinco
5y ago
> You're going to be using classical crypto for bulk no matter what, so, no, you don't get that advantage, and anyways, what does anyone care what a session key is when they can get the session plaintext? You're right, the
980.
▲
by
tinco
5y ago
I don't know why someone downvoted you, but the flaw people are pointing out is that the initial agreeing upon a basis is equivalent to exchanging a preshared key. If you've got a preshared key, then why go through the trouble of
981.
▲
by
tinco
5y ago
Alright, so my initial response is this: Luckily I'm not in charge of setting up a QKD network at the moment. I have no idea what the actual usecase is for these things. I fully agree that simply sending a "runner" with the P
982.
▲
by
tinco
5y ago
You ask jokingly, but the serious answer is that there's an actual scarce asset behind it. Sort of like Bitcoin ;) Whether the scheme artificially inflates the value of the asset remains to be seen of course. I feel the fact that the c
983.
▲
by
tinco
5y ago
It's crazy how they messed up, the original Toshiba press release is super clear and even leads with this list of key points for media to use right up top: -New dual band stabilisation technique cancels the problem of temperature and s
984.
▲
by
tinco
5y ago
There's a better article here (which is the source): https://www.toshiba.eu/pages/eu/Cambridge-Research-Laborator... Basically their achievement is that they have done quantum key distribution over a distance
985.
▲
by
tinco
5y ago
From the article it shows the kids had bad opsec, and their identities could be deduced from Github accounts that were linked to the theft which were subsequently subpoenaed. edit: And since they were asking on github on how to get the priv
986.
▲
by
tinco
5y ago
You can pull it off if you've got integrity. John Stewart surely has plenty of integrity in my eyes. Joe's definitely also going for integrity, but maybe he's also liable to be pulled into the views of his guests. He certainl
987.
▲
by
tinco
5y ago
I've got the same issue, I'm a relatively slow typer (90WPM) but every now and then the Mac just becomes so slow and typing everywhere is lagged. It usually happens when I'm working on the frontend of our app which has a java
988.
▲
by
tinco
5y ago
I don't use OnlyFans personally, but I can clearly see the appeal of it. Right up front is the personal connection, these creators are posting updates on their lives and their looks and more traditional content daily. It's like a
989.
▲
by
tinco
5y ago
It doesn't really make sense in my opinion, so maybe I'm the wrong person to answer, but I think it's a game of statistics. OF has captured a certain market, and is making a certain amount of money. Of companies like that, a
990.
▲
by
tinco
5y ago
This sounds too good to be true. I don't know about other countries in Europe, but in The Netherlands it is definitely illegal to have a contractor work in employment conditions. I.e. you're not allowed to give a contractor set wo
More ›