Live data from Hacker News

Project Euler

projecteuler.net

91–100 of 172 posts

Re: Project Euler

#91
In a way, Project Euler was years ahead of its time. It's a set of problems for aspiring machine learning and data science specialists. They should really update their description.

Re: Project Euler

#92
I guess I'm becoming an old fart. I used to like programming puzzles, challenges, things like this. But as time marches on, I realize that the real-world problems I have to solve are already so challenging and require enough critical thinking, that I'm best served just focusing on them. Between family life, doing real-world challenges for income, downtime to breathe, diverse hobbies for the spiritual good of my person, I just don't see how to fit in Euler problems and other similar endeavors. Perhaps if I was a teenager again, I'd be jumping into them with much enjoyment.

Re: Project Euler

#93

Earlier quoted context omitted.

I don't think it's unreasonable to expect it. E.g. clang -O1 ( https://godbolt.org/g/7qzSF9 ) is able to use the closed form for a sum on a simple C++ loop. It's not unreasonable that a language with deeper introspection could identify more closed forms. I agree that I don't think the Haskell maintainers would put this specific example in, but I wonder whether they could build it up from simpler primitives.

Haskell optimizer does not feature an arithmetic Oracle nor polynomial optimizer. It cannot even optimize Peano arithmetic much less a series. This might be fixed some time or never. There is little push for ultimate performance and actually identifying arithmetic forms in recursive loops in the front-end is hard. (Heck it sometimes fails to tail optimize.)

I'd be interested to see how this weighs out in 5-10 years. Since there's no I/O here, I don't see why a clever compiler writer couldn't optimize this whole expression away at compile time, generating an executable just prints a constant.

Re: Project Euler

#94
post #92

I guess I'm becoming an old fart. I used to like programming puzzles, challenges, things like this. But as time marches on, I realize that the real-world problems I have to solve are already so challenging and require enough critical thinking, that I'm best served just focusing on them. Between family life, doing real-world challenges for income, downtime to breathe, diverse hobbies for the spiritual good of my perso…

I am the same though I'm only 30. I no longer seek out puzzles but to solve interesting real world problems. The time you put into a challenging Euler puzzle, you can use React/Rails/NodeJs/Go/Rust/lang du jour to solve real world problem, helping real people.

Also as a liberal arts in programming, Euler, is fun in the sense of a well done proof is fun in math. If that is your thing you'll enjoy Euler, otherwise as in most programming you will brute force your way to a solution.

Re: Project Euler

#95
post #92

I guess I'm becoming an old fart. I used to like programming puzzles, challenges, things like this. But as time marches on, I realize that the real-world problems I have to solve are already so challenging and require enough critical thinking, that I'm best served just focusing on them. Between family life, doing real-world challenges for income, downtime to breathe, diverse hobbies for the spiritual good of my perso…

Project Euler is nice for math problems. It has little real world value for developers. The first ones can be a nice hands on introduction to problem solving.

Re: Project Euler

#96

I really like to use project euler when I want to learn a new language. Exercises are sorted more or less by difficulty, at least for the first 50-100, and are completely langage agnostic (you just need to answer a question in a text input). It's also very good to learn algorithm and maths. Some problems can even be solved without any programming. And for some, a certain amount of math is necessary to have a efficien…

(They do ask not to share the solutions.) But nice job translating them :-)

That's not me, but I found those translations very useful a few years ago! Hope it can help someone.

Re: Project Euler

#97
post #92

I guess I'm becoming an old fart. I used to like programming puzzles, challenges, things like this. But as time marches on, I realize that the real-world problems I have to solve are already so challenging and require enough critical thinking, that I'm best served just focusing on them. Between family life, doing real-world challenges for income, downtime to breathe, diverse hobbies for the spiritual good of my perso…

A bit of a plug, but you should check out this thing I built! Go to https://hackattic.com - It's just a test of an idea, but I wanted to show people it's possible to come up with no-nonsense, more real-world-y challenges. I've never, ever really like the typical CS challenges proposed everywhere.

Re: Project Euler

#98

Earlier quoted context omitted.

I really like the book “Concrete Mathematics”. It might be a little hard going without much maths background, but it is filled with these kinds of tricks.

Author(s)?

Not the same person but I guess he means the one by Graham, Knuth (yeah that one) and Patashnik.

Re: Project Euler

#99

Earlier quoted context omitted.

I really like the book “Concrete Mathematics”. It might be a little hard going without much maths background, but it is filled with these kinds of tricks.

Author(s)?

Ronald L. Graham, Donald Ervin Knuth, Oren Patashnik

Re: Project Euler

#100
post #92

I guess I'm becoming an old fart. I used to like programming puzzles, challenges, things like this. But as time marches on, I realize that the real-world problems I have to solve are already so challenging and require enough critical thinking, that I'm best served just focusing on them. Between family life, doing real-world challenges for income, downtime to breathe, diverse hobbies for the spiritual good of my perso…

It's normal to lose interest in hobbies when new ones take over
Post reply on HN