Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zasdffaa
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
661.
▲
by
zasdffaa
4y ago
My K&R C book agrees with you, but there when you know about cmov, it seems to map cleanly to ?:. It's just my opinion and what I feel. I can't back it up any better.
662.
▲
by
zasdffaa
4y ago
> even on that imaginary machine the compiler is allowed to perform "as if" transformations which change what happens Yeah, but beginner programmers won't be told that. I can imagine even quite advanced programmers may be
663.
▲
by
zasdffaa
4y ago
I knew a kid whose parents forced him to learn the violin. It was a social status thing, doubtless wrapped up in "it's good for you and you'll thank us" but it really was about them and jacking up their social standing a
664.
▲
by
zasdffaa
4y ago
Because if (..) c = 1 else c = 2; will "obviously" map on to a branches whereas c = .. ? 1 : 2; "obviously" corresponds to a cmov. It's a natural mapping, if not necessarily correct mapping with mo
665.
▲
by
zasdffaa
4y ago
> ...inheritance. Which most modern OOP rarely uses huh?!
666.
▲
by
zasdffaa
4y ago
Not him/her but I'm writing a compiler, I use functional, sure, but most of it is AST objects, expression objects (which fit OOP very well), internal representations of other objects. Lorra, lorra objects. Working well.
667.
▲
by
zasdffaa
4y ago
The universe won't bend to what a person needs and deliver it. Many people truly deserve better than they have but never get it. Maybe you can find an answer, I can't.
668.
▲
by
zasdffaa
4y ago
> but what's the alternative if one doesn't have a human instructor available? My point is, there isn't one. Modelling the student's thought processes is essential. Maybe GPT could be trained to emulate such? But ther
669.
▲
by
zasdffaa
4y ago
If you're like me, of average intelligence and not an abstract thinker, I don't believe any maths book can replace a human until you have a pretty solid experience & background established. There's too many ways to misint
670.
▲
by
zasdffaa
4y ago
Thank you in turn, I hope you find something soon!
671.
▲
by
zasdffaa
4y ago
You're being sarky? Maybe it's too obvious advice, especially my emphasis on a 'good' project but I've seen some pretty pathetic ones inc. someone here who complained no-one was impressed with his work. I looked at
672.
▲
by
zasdffaa
4y ago
Do a good project, put it on a public repo. Point them at it. That will help. Or OS contribs perhaps. Good luck!
673.
▲
by
zasdffaa
4y ago
I went for a job, was given a vague programming task. I spent days on it and was rejected. When I asked why they told me it wasn't what they wanted. I asked what was. What they told me approximately (and that was pretty unfocussed) I w
674.
▲
by
zasdffaa
4y ago
When you need to work for a prolonged period, pop child in a large freezer. When finished, take them out and wait for sprog to warm up, bingo!. Time effectively stops for them, removing the massive friction between work and childcare. It wo
675.
▲
by
zasdffaa
4y ago
The problem is (I've seen it) staff turning off or disabling WAL[1] because it makes things faster, or as an unintended consequence of doing something else. Great if 'some data loss' being possible is understood in advance. O
676.
▲
by
zasdffaa
4y ago
> ...we take their board from them, until they show up with one. Reminds me of a blessedly terse reminder on the entry to a building site: "No hat no boots no job"
677.
▲
by
zasdffaa
4y ago
This guy sees your point and this guy does indeed wonder why it's there when 2*Pi will do. But if it's about python the answer is simple - unlike many other languages python does fold constants, but does't fold expressions u
678.
▲
by
zasdffaa
4y ago
you have a few examples of this?
679.
▲
by
zasdffaa
4y ago
I was responding to "was more first class in popular languages". I know about python's functools lib and its memoisation decorator. Point was, if you didn't have it and wanted it, it's easy; no need for the language
680.
▲
by
zasdffaa
4y ago
If you want other than LRU or time-to-expire then I take your point, but those are IME the most common types, therefore support it. The cache in python's functools are default 128 items, LRU (from memory). If you really want specialise
681.
▲
by
zasdffaa
4y ago
If your lang has 1st class functions (edit: inc. closures[1]) you can write memoisers trivially and use them like var fm = add_memoisation_to(f); // used generics for c#/scala Done this in javascript, scala, C#. Can&
682.
▲
by
zasdffaa
4y ago
It's a theoretical challenge to your idea, that's all. In fact IIRC from the distant past that lambda calculus is where this behaviour comes from so it is in fact theoretically well-founded. I withdraw my doubts.
683.
▲
by
zasdffaa
4y ago
Yeah... ISWYM and it sounds good, then again it confuses the boolean concept with the list concept, the set concept etc. etc. etc. Doesn't mean it isn't useful, and maybe there's very little risk of mistakes but still.
684.
▲
by
zasdffaa
4y ago
> The idea of "false" is a higher-level abstraction that was successfully back-ported to C. You're pushing 'back-ported' a bit much. It's just a blatant equivalence that 0 is a conceptual false, when a zero
685.
▲
by
zasdffaa
4y ago
Hard to know what to make of such a suggestion, perhaps you could flesh it out somewhat.
686.
▲
by
zasdffaa
4y ago
Not sure I could tell a castrated Python from an uncastrated Python except by the look on its face.
687.
▲
by
zasdffaa
4y ago
I've never been able to into The Zone, it's a mythical place for me, so I being disrupted thus isn't so much of a problem, more an irritation. What does screw me is loud noise, be it shouty workmates or my absolute utter neme
688.
▲
by
zasdffaa
4y ago
It is precisely asking to be decieved. Precisely, exactly and specifically.
689.
▲
by
zasdffaa
4y ago
Badly put. Only that the cost might well not drop. Whether it needs to rise significantly I don't know.
690.
▲
by
zasdffaa
4y ago
Cost of power is going up now. It might not be reasonable to assume price falls this year. Or it might. Dunno.
More ›