Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bstamour
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
bstamour
9y ago
I'm reading this right now as well. The last time I read it I was still in grade school, and it started my love of science fiction.
62.
▲
by
bstamour
9y ago
For those interested, here's a Haskell interface to the Beacon I put together some time ago [1]. [1] https://github.com/bstamour/haskell-nist-beacon
63.
▲
by
bstamour
9y ago
Haskell did the same for me.
64.
▲
by
bstamour
9y ago
* High performance/scientific computing * Graphics * Infrastructure (web servers and browsers, OS's, drivers, etc) * Any desktop apps that are CPU/memory intensive. think image processing, video editing, even office applicati
65.
▲
by
bstamour
9y ago
Though it uses a subset of C++ for the code examples, Elements of Programming by Stepanov and McJones. It shows how algebra can serve as an effective foundation for engineering generic, reusable programs.
66.
▲
by
bstamour
9y ago
I would have done better had I known how python does parameter passing...
67.
▲
by
bstamour
9y ago
That's because gcc supports it as an extension to C++. It's not an official part of the language, and using it in C++ code is therefore not portable across compilers/platforms.
68.
▲
by
bstamour
9y ago
C supports variable-length stack-allocated arrays, while C++ doesn't. So code like void f() { int x; scanf("%d", &x); // read from user int numbers[x]; // dynamic }
69.
▲
by
bstamour
9y ago
I'm not sure, honestly. It would be nice if it were.
70.
▲
by
bstamour
9y ago
The University of Windsor used it in their first year intro to CS course up until 2015. I wonder how many other places still use it.
71.
▲
by
bstamour
9y ago
We used Miranda in my first year intro to CS course back in 2006. It was still used at my university up until last year. Others may disagree, but I feel that it's a fine language for teaching fundamental CS concepts like recursion/
72.
▲
by
bstamour
9y ago
I've found the C++ Standard Library 2nd Edition to be an excellent companion to Stroustrup's Tour of C++. It does a good job of preventing you from reinventing wheels that others have already built for you.
73.
▲
by
bstamour
9y ago
Please update the section on storage classes. Auto is no longer a storage class, but a keyword for automatic type deduction. Also, register has recently been deprecated as well, if I remember correctly.
74.
▲
by
bstamour
9y ago
I know, right? That was the email client my dad used back when we first got dialup in the early 90's.
75.
▲
by
bstamour
10y ago
> At least with C you get the power to do things the way you want to C++ gives you the same level of control over your program that C does, but also comes with nice low-cost (in many cases zero-cost) abstractions for when you need them.
76.
▲
by
bstamour
10y ago
Yeah, I kind of agree that C++, when used badly, can result in some serious mess-ups in the safety department. But for better or worse the language is here to stay (at least for the foreseeable future) so it's good that these guideline
77.
▲
by
bstamour
10y ago
C++ has that. Check out clang_tidy [1]. EDIT: In particular, the clang tidy linter has a way of checking your code against the C++ core guidelines [2], which is a set of modern best practices for the language. [1]. http://clang.l
78.
▲
by
bstamour
10y ago
Any particular reason why? I feel that the problem of mapping sensory inputs like sound etc onto internal concepts for reasoning is an important part of AI.
79.
▲
by
bstamour
10y ago
I actually feel the exact opposite when I program in C. C is so bare that most of my time is spent building the correct constructs I need to solve my problem. C++ on the other hand has a decent set of high level features that makes it easie
80.
▲
by
bstamour
10y ago
Agreed. I rarely use pmf's, so every time I do I have to look up the syntax again.
81.
▲
by
bstamour
10y ago
Yeah, typedefs solve the problem for fixed types. I guess you could use a macro to create a generic FUNC_PTR or something as well.
82.
▲
by
bstamour
10y ago
This is one of those cases where I prefer C++ template <typename Func> using function_ptr = add_pointer_t<Func>; and now declarations are a bit more sane: void foo(function_ptr<void (int)> callback);
83.
▲
by
bstamour
10y ago
I read through it a long time ago, and it's fine for learning the core of the language. Real World Haskell and Learn You A Haskell For Great Good are probably better introductions nowadays.
84.
▲
by
bstamour
10y ago
I used to own $lastname.email, but I ran into issues with other people's accounts flagging me as spam.
85.
▲
by
bstamour
11y ago
You don't need to be low-income to appreciate free, perfectly good stuff.
86.
▲
by
bstamour
11y ago
You can use the w3m console browser from inside emacs.
87.
▲
by
bstamour
11y ago
> No one ever quits. I've been clean and sober since Zendikar. It's tough, but every day it gets a little easier. :-)
88.
▲
by
bstamour
11y ago
When you say real progress, are you referring to the underlying technology itself, or something else? With regards to the technology, I'm not sure if there's much more room for improving EEG itself, it seems like a solved problem
89.
▲
by
bstamour
11y ago
I used to think his browsing/emailing habits were silly, but then I started working in the park about 5 years ago on nice days. My phone data plan at the time was pretty crappy, so I rigged up a system using a local imap server and off
90.
▲
by
bstamour
11y ago
> VS2010 was one of the first compilers (even before gcc/clang) GCC supported C++0x features back when they thought the standard would be released before 2010. Hence the 0x, not 1x. I remember using the `-std=c++0x` flag back in 200
More ›