Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
e-dant
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
Knowing how slow the kernel thinks your program is, and plottable
(github.com)
1 points
by
e-dant
2y ago
|
1 comments
62.
▲
by
e-dant
2y ago
Flaregun safely monitors performance metrics on a program, or your whole system. Like top, it doesn’t require much to Just Work and produce meaningful output. Like other dedicated tracing tools, Flaregun can peek deeply into your applicatio
63.
▲
by
e-dant
2y ago
Seems like a good pitch for ai
64.
▲
by
e-dant
2y ago
I once wrote a small piece of software which did everything for everybody in constant time with no dependencies. It was very simple.
65.
▲
by
e-dant
2y ago
I’m wondering if this really is too aggressive. On Linux, sure it’s not possible to directly crash another program you’re talking to via a socket alone (ignoring bad data on the socket). But you can absolutely kill them. Anything running as
66.
▲
by
e-dant
3y ago
It’s the integration with those platform-specific requirements which I find so tough. Apple wants a particular format, signed and whatnot via xcodebuild. Windows, I don’t even know. Something about universal apps on the Windows store. Andro
67.
▲
by
e-dant
3y ago
- People will happily spend $5 for coffee but have an existential crisis when asked for a $1 app. If you’re looking to make money on these things, it’s an uphill battle. - All software is derivative. Yours included. Putting it out there is
68.
▲
by
e-dant
3y ago
I wonder if there’s room for a theory of convergent evolution, in software and languages, towards something that is generally appreciated. Maybe there will always be camps arguing for one thing or another, but together and over the longest
69.
▲
by
e-dant
3y ago
How well does this handle formatted text, like, say, json? yaml? legal agreements?
70.
▲
by
e-dant
3y ago
The ABS system your car’s brakes could crash — literally — and that would be safe?
71.
▲
by
e-dant
3y ago
Without stepping on anyone’s toes, I think we can agree that “safety” could be broken down a bit. Memory safety, thread safety, fine… but there’s a whole forest past those trees. Is it a safety feature to type-check regular expressions usin
72.
▲
by
e-dant
3y ago
Right, that’s my understanding. But OP and a sibling thread here seem pretty sure about the mutex thing. I think there’s some nuance, but not in the general case. Shared memory, lazy statics in async blocks, and asynchronous constructors mi
73.
▲
by
e-dant
3y ago
What about Rust’s borrow checker (affine types) enforces the use of mutexes (or other sync prims) here?
74.
▲
by
e-dant
3y ago
Yeah, I don’t know how my filesystem watcher made it to the front page either
75.
▲
by
e-dant
3y ago
Looks like constant folding to me. What’s the difference exactly?
76.
▲
by
e-dant
3y ago
The solution is function composition. Combine, reuse, rewrite as needed. Eliminate control flow.
77.
▲
by
e-dant
3y ago
Use combinators!
78.
▲
by
e-dant
3y ago
This is the website containing the test: https://www.sapa-project.org/survey/start.php I don’t know about you, but I definitely wouldn’t hit either of those buttons taking up most of my screen, and I definitely wouldn’
79.
▲
by
e-dant
4y ago
> 44% of 18- to 49-year-olds say they go online almost constantly Depending on what people consider “going online,” this isn’t necessarily a problem. Being glued to an endless feed of clickbait and advertisements is probably unhealthy. H
80.
▲
by
e-dant
4y ago
Reading over many of the comments here makes me sad. Many of them seem to be about what I, the developer, can use . Let me reframe it — what if you thought of FP techniques as something you could expose to a user of your API? What if you v
81.
▲
by
e-dant
4y ago
Some people here are feeling put off by an author pointing out bad practice. Some people writing security vulnerabilities in C are feeling put off by a programming language with sanity checks.
82.
▲
by
e-dant
4y ago
For the record, runtime polymorphism is generally frowned upon in the most modern C++ practice. The only difference between “modern, clean” C++ and the author’s switch is probably a concept that requires some type attributes. The example is
83.
▲
by
e-dant
4y ago
That’s a holiday sweater. Not a well-designed. Which is why it looks nice. Very human.
84.
▲
by
e-dant
4y ago
Programmers have a lot to learn from designers. Programming is a form of expression between a human and a system. We should finally start treating it that way. Write something beautiful.
85.
▲
by
e-dant
4y ago
Lots of comments here debating what’s legacy, what’s modern. Here’s my take: Never use objects with behavior. (Ban OOP.) Prefer monadic types. Functions should only take or return moved values or const references. (These form linear types w
86.
▲
by
e-dant
4y ago
Sure. But the point is that functional languages are more declarative, holding very little control flow state. Procedural languages are the opposite. The computation I’m talking about is whether you’re for more of a von neumann target or a
87.
▲
by
e-dant
4y ago
Algorithms != computation
88.
▲
by
e-dant
4y ago
Practically speaking, any algorithm that does the same thing given the same input is said to be stateless. This property becomes more useful when you’re trying to prove something about a function’s behavior over a bunch of well-defined type
89.
▲
by
e-dant
4y ago
The argument is that we don’t compose enough functions to create value. Instead, we lean on (not always well defined) state, the result of operations on data
90.
▲
by
e-dant
4y ago
Balance in all things Edit: eh, that comment didn’t really say much. What I meant was that there are classes of algorithms that are stateless. Maybe the most useful are proofs. Look, I’m a C++ dev. I live and breathe state. Weird, mostly-wo
More ›