Better HN
topnewbestaskshowjobs
Log inSign up

hellofunk

9,428 karma · joined Jul 10, 2015 (11y ago) · 3,276 submissions

John Bellick, Mexico City
Submissions

comment 10y ago · link · parent

Can you recommend an approach to learn high level math on one's own? Any particular books that are good for that purpose?

2372.

Ask HN: How to self-learn high-level math?

5 points · by hellofunk · 10y ago · 2 comments

comment 10y ago · link · parent

Thanks for clarification. I thought the capture list was required for this. I suppose the capture list is for capturing variables that are local to the scope of the lambda's definition.

comment 10y ago · link · parent

One of his definitions of a pure function is one that only has by value parameters and doesn't change state. Am I correct in thinking that in C++, the advent of C++11 lambdas allows you to be explicit about this and prevent the compiler from allowing you to accidentally use variables from outside the scope of the function's parameters, by writing lambadas (named, if necessary, like a normal function) with no-capture lists ("[]") which would force you to work in a more pure style. In C++, what other method might help you enforce purity?

comment 10y ago · link · parent

What exactly is the difference between Racket and Scheme, how are they related?

comment 10y ago · link · parent

Replace "programmer" with any other job title, advice still applies. Managing your time better is simply a key factor to success in any area.

2377.

SoftBank to Buy ARM, a Mobile Chip Designer, for $32B(nytimes.com ↗)

2 points · by hellofunk · 10y ago · discuss

comment 10y ago · link · parent

Details: https://www.reddit.com/r/vulkan/comments/462lwi/vulkan_comin...

comment 10y ago · link · parent

The irony is that the Western concept of something that is "in tune" is actually dissonant to the same Western cultures of the past. Well-tempered tuning has only been around since Bach's time. Our music today would not sound right to those during or before his time, in general.

comment 10y ago · link · parent

GitHub: https://github.com/ertugrulcetin/ClojureNews

2381.

Clojure News: An HN Clone for Clojure(clojure.news ↗)

2 points · by hellofunk · 10y ago · 1 comment

comment 10y ago · link · parent

The author should state that simple fact on the repo's front page.

comment 10y ago · link · parent

It's unclear to me what this emacs script actually does. I wish there was more documentation for anything that someone asks you to install into your core development environment.

comment 10y ago · link · parent

What do you mean by magic here?

comment 10y ago · link · parent

Einsten, Darwin, and Giuliani all married their first cousins, from what I understand.

comment 10y ago · link · parent

Actually the term "second cousin" does not have a concrete meaning. It can mean a true second cousin, or it can also mean a generation removed from a first cousin. The "once removed" terminology was introduced to compensate for this ambiguity.

comment 10y ago · link · parent

> Not all immutable data structures can be made as efficient as mutable ones. Usually they are as fast as mutable ones,

I don't think this is true. Clojure uses immutable persistent data structure under the hood, just as most functional languages do, and devs often jump through hoops to circumvent them for performance reasons, opting instead for bit bashing like most other languages.

comment 10y ago · link · parent

That's fine, and now that I think about it, in C++ just setting the flag to make all compiler warnings also errors, it too would prevent compilation (I think?).

comment 10y ago · link · parent

I agree. In Swift, an uninitialized variable must be set to nil and have the properties of an optional for it to compile. Not a bad idea.

Using 'auto' in C++ forces out uninitialized variables as well.

comment 10y ago · link · parent

I thought this was a new language. The repo history goes back at least as far as 2001.

comment 10y ago · link · parent

You're right, I thought this was a new language. The repo history goes back at least as far as 2001. I'm struggling to see the point to this language; what does it offer over C++ directly?

comment 10y ago · link · parent

> var a : int ; // uninitialized is ok

This seems like an odd choice when creating a new language. Most modern languages (C++11, Swift) have been introducing new declaration techniques or requiring all variables to be initialized at declaration, as this prevents a large class of bugs.

comment 10y ago · link · parent

A short but useful overview of the modern C++ is Stroustrup's "Tour of C++" which is a quick read and will get you into all the main features without going to deep. Just make sure you get a recent edition.

comment 10y ago · link · parent

>a truncation error on a cast of a floating point value to a 16-bit integer played a crucial role in the destruction of Ariane 5 flight 501 in 1996. These errors are also a source of serious vulnerabilities, such as integer overflow errors in OpenSSH [MITRE Corporation 2002] and Firefox [MITRE Corporation 2010], both of which allow attackers to execute arbitrary code. In their 2011 report MITRE places integer overflows in the “Top 25 Most Dangerous Software Errors” [Christey et al. 2011].

Wow, that's more than a little enlightening.

comment 10y ago · link · parent

Good book, but not a good intro book. Just its first chapter dives right into some rather complex matters surrounding decltype that are often not needed, especially for those new to the language.

comment 10y ago · link · parent

Qt is a very robust GUI framework in a C++ environment, but since version 5.0 allows fast UI development using a scripting language called QML that interacts well with its C++ underlying engine. It's like designing for the web but with a lot of extra perks.

Barring that, there is also Elm for static web GUI programming which is worth a look.

comment 10y ago · link · parent

A lot of Wordpress stuff out there is premium and rather expensive, so to see quality Wordpress tools that are free is indeed an important feature. Most free Wordpress stuff is ugly and useless (except for Wordpress itself, of course).
1
798081
110