Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mortoray
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
mortoray
5y ago
It's a bit disappointing that a relatively new language like Rust doesn't handle these correctly. There's no value in a String type if it doesn't behave for text. One can simply use a "Array<char>" to con
2.
▲
by
mortoray
5y ago
It's not about reversing, but about checking whether reverse iteration works. This is required to perform proper truncation (for limited length fields) as well as visual editing for a cursor to go through the text. It can additionally
3.
▲
by
mortoray
6y ago
It'll probably help in this case since I suspect it's computational overhead introducing the bottleneck, nothing architectural. Alas, I might have to wait, as I tend to use Python 3.8 and it's not supported yet -- though main
4.
▲
by
mortoray
6y ago
I intend on adding WebRTC as a channel for higher volume discarble messages, such as the cursor position of all players.
5.
▲
I Evaluate You in a Code Interview
(interview.codes)
1 points
by
mortoray
7y ago
|
0 comments
6.
▲
by
mortoray
7y ago
I agree. General purpose pattern matching in both expressions and function dispatch is a great feature.
7.
▲
by
mortoray
7y ago
Great!
8.
▲
by
mortoray
8y ago
I do not have a good reason. A lot of my recent stuff isn't technical, so it's only on the Medium pages. I guess I tend to post those links often now.
9.
▲
I don’t know how to create a website
(medium.com)
3 points
by
mortoray
8y ago
|
3 comments
10.
▲
Hacker Porn – Bad Lollipop – OkHarmony Breach
(medium.com)
2 points
by
mortoray
8y ago
|
0 comments
11.
▲
by
mortoray
8y ago
I chose LLVM from the start since I knew some of the challenges that interested me couldn't be done at the C level -- or rather it'd be more complicated at that level than at the LLVM level.
12.
▲
by
mortoray
8y ago
Thank you.
13.
▲
by
mortoray
8y ago
When I started Leaf it was to scratch an itch. It was really only when the motivation dropped that I tried to find ways to use it, to renew my interest in pursuing it.
14.
▲
by
mortoray
8y ago
Perhaps that did not come across in the article well. When I set out to do Leaf that was the goal of the work. It's wasn't a diversion to some other goals. Over time my priorities changed, and I was trying to force myself to fol
15.
▲
by
mortoray
9y ago
I, the author, am tending to agree now. :)
16.
▲
Microsoft is absolutely at fault for WannaCry
(mortoray.com)
4 points
by
mortoray
9y ago
|
0 comments
17.
▲
by
mortoray
10y ago
Okay, they are classified but I don't see that anything in the setup, or pip package management, seem to actually use them. Are they somehow used in actual package management, or just search qualifiers?
18.
▲
by
mortoray
10y ago
That is not an actual migration guide. It's merely a meta-doc saying what types of things you need to pay attention to. I was looking for a specific list of things that would have to be migrated. The docs mention of reading the release
19.
▲
by
mortoray
10y ago
The `iter` form of the `readline` doesn't load the entire stream first, whereas the second form you posted does. This makes a significant difference when reading data from another program. I saw that migration guide, but it has very fe
20.
▲
by
mortoray
10y ago
The simple syntax changes I did prior to running 2to3 as they came up on the first run I tried. The semantic changes that didn't come up in 2to3 is what I was more bothered about.
21.
▲
by
mortoray
10y ago
#1 has a big influence on my argument. I think it was Python and NodeJS library systems that made it super simple for people to publish libraries. There are a lot of trivial libraries out there, and many of questionable quality. Sometimes u
22.
▲
by
mortoray
10y ago
I (the author) can certainly do the silly algorithm tests, but whether I can contain my snide remarks enough to get the job is uncertain. :)
23.
▲
by
mortoray
10y ago
Those are some of the points I'm considering as well when doing the memory management for Leaf. My desire to have predictable destructors is tough to reconcile in a tracing GC. I'm uncertain of what you mean with "copying the
24.
▲
by
mortoray
10y ago
In my quest for a memory management scheme on Leaf it's your final point which is primarily forcing my decision: the compatibility with other memory managers. In this article I just wish to provide counterpoint to those people trying
25.
▲
by
mortoray
10y ago
In my conclusion I mention why there are no benchmarks, it's nearly impossible to construct a realistic comparison between the two techniques. When I cosnider tracing GC my primary arguments against it have nothing to do with performan
26.
▲
by
mortoray
10y ago
I'm not sure how this disputes what I say about a scanning garbage collector. The number of live objects is proportional to the amount of total memory allocated. I don't consider dead objects, where the memory is not longer used a
27.
▲
by
mortoray
10y ago
I (author) actually agree that reference counting is a form of garbage collection. However, in most dicussions about memory management the generic term garbage collection tends to refer to scanning collectors. In particualr, people who ofte
28.
▲
by
mortoray
11y ago
Yes, round is usually a safer choice, but in this case we had reasons to use floor and ceil, and thus had to deal with the issue. I've added a section to the article with a more correct snapping function showing the issue more clearly
29.
▲
by
mortoray
11y ago
Rounding to the nearest value does avoid the problem I had in the article. But we really wanted to `ceil` in this case, to guarantee an element is never smaller than a provided value (and doesn't end up as 0 size).
30.
▲
by
mortoray
11y ago
Python actually seems to show a much higher precision than other languages (higher than C's printf default I belive). Interesting is that print can show an exact representation of any floating point value, but of course 0.1 can't
More ›