Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sfpotter
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
571.
▲
by
sfpotter
4y ago
You don't actually seem to be addressing the quoted text... but I can reply to your arguments. Sure, it would be ideal if there were a new book on C which did a better job of explaining some of the developments since K&R 2ed was wr
572.
▲
by
sfpotter
4y ago
I don't agree that it's a good practice, I'm simply quoting one example to you since you mentioned you were not aware of any. IIRC, you can find many GitHub issue threads on the Cython repo where they go into more detail. It
573.
▲
by
sfpotter
4y ago
It's unwise to neglect it in the long run. It's perfectly reasonable to ignore it initially. There are different valid pedagogical approaches here. Your approach may be suitable for the type of student you were interacting with, b
574.
▲
by
sfpotter
4y ago
Here's one example of when to commit auto-generated code: if you use a tool like Cython and want to distribute sources to an end user, it is frequently recommended to distribute the C sources generated by Cython instead of the Cython c
575.
▲
by
sfpotter
4y ago
All of this is true, but if you are just starting with C, none of it matters. If you continue using C, then you should eventually learn this stuff, but to overburden someone with a list of 100 things they must do right is the surest way to
576.
▲
by
sfpotter
4y ago
My comment is for the OP, not for you. Go nuts learning C tooling and have fun.
577.
▲
by
sfpotter
4y ago
Unfortunately, global hidden state is an unavoidable fact of programming. I don't see how one could be very good at programming if they were kept blissfully ignorant of it. Sometimes there is magic under there, and you just have to d
578.
▲
by
sfpotter
4y ago
The suggested way to learn C in 2023 is the same as the suggested way to learn all languages for the past decade or so. Do you like videos? Find videos on YouTube and watch them. Do you like books? Go on Amazon and search for "C progra
579.
▲
by
sfpotter
4y ago
If you're just beginning with C, it doesn't matter. If anything, it's better to be exposed to these unsafe practices and make mistakes with them in the very safe environment of your own home, where absolutely no one cares wha
580.
▲
by
sfpotter
4y ago
Don't bother with this stuff (or with "modern C") if you're just beginning to learn the language. You don't need it for small programs. No one is going to yell at you if your first effort isn't perfect. And no
581.
▲
by
sfpotter
4y ago
Reading 2k+ commits is a big waste of time. Forcing yourself to read every commit to a project you "like" in order contribute to it is putting the cart before the horse. Just because you "like" a project doesn't mea
582.
▲
by
sfpotter
4y ago
I don't recommend learning how to use Autotools unless you need to work on a project that uses it (and even then, try to avoid it). Highly recommend learning CMake or Meson instead. If you're just getting started, there's no
583.
▲
by
sfpotter
4y ago
Yes. It’s easy. Easier if you pack up your stuff yourself. And obviously the less stuff you have the easier it is. But of the tasks humans find themselves endeavoring away at, it ranks among the more straightforward.
584.
▲
by
sfpotter
4y ago
The target audience of The Atlantic are rentiers in the US who don’t want to have to deal with the cognitive dissonance of charging unaffordable rents and contributing to misery in the world.
585.
▲
by
sfpotter
4y ago
Hire a mover.
586.
▲
by
sfpotter
4y ago
I used to commute an hour each way from Baltimore to DC on I-95. I am a very defensive driver. My experience had everything to do with other people driving aggressively. I have met countless people who have had the same problem. I guarantee
587.
▲
by
sfpotter
4y ago
I live in New York City, I commute on the subway everyday, I do not make a high salary, and I do not live in an affluent area. If I drove to work instead of taking the subway, it would cost a full order of magnitude more per year, and my co
588.
▲
by
sfpotter
4y ago
It computed the division correctly with almost three digits of accuracy. This isn't completely wrong. I don't personally know how ChatGPT goes about doing division of two integers, but I would be surprised if it had somehow how ma
589.
▲
by
sfpotter
4y ago
You can speak for yourself, but you obviously haven't talked to enough people to make a sweeping claim like that. Maybe you like the vroom vroom, but there are loads of people who are forced to drive every day and who absolutely loat
590.
▲
by
sfpotter
4y ago
Consider that in a "regular"-style school, there is no reason to expect the situation would be any better, although it might look the way you think it should. Possible differences: - the kids may not be "just walking around&q
591.
▲
by
sfpotter
4y ago
I’m surprised you view Montessori education as some sinister thing despite your daughter doing well with it. I feel like you might be overthinking things. Leaving aside Montessori’s somewhat grandiose speech, it’s just a pedagogical mode wh
592.
▲
by
sfpotter
4y ago
Friends? Or fair weather friends?
593.
▲
by
sfpotter
4y ago
Just FYI, anyone who wants to play any of the Marathon games, be advised that they have been available open source for a long while now: https://alephone.lhowon.org/
594.
▲
by
sfpotter
4y ago
Discrete convolution is O(n^2).
595.
▲
by
sfpotter
4y ago
I feel attacked by the interstitials on this website.
596.
▲
by
sfpotter
4y ago
Ask Miyazaki about this and see what he thinks.
597.
▲
by
sfpotter
4y ago
None of this is true or very important anymore. For aliasing, in C, there's the restrict keyword, although it isn't used that often. If you take a look at BLIS or even BLAS, restrict isn't used. C++ doesn't have restrict
598.
▲
by
sfpotter
4y ago
"Numerical Linear Algebra" by Trefethen and Bau. "Advanced Mathematical Methods for Scientists and Engineers: Asymptotic Methods and Perturbation Theory" by Bender and Orszag. I'm not sure if they meet your definiti
599.
▲
by
sfpotter
4y ago
I think this is an interesting question, and I'd be curious to know the answer, too. That said, I might push back on the idea that CG problems don't have this kind of regularity. They give the example of a point being either on a
600.
▲
by
sfpotter
4y ago
The requirements for writing curl are different from the requirements for writing other software. Just because C89 is a good choice for curl doesn't mean that C99 isn't a better choice for other things. The failure isn't in h
More ›