News for hackers. Stuff that matters.

digsmahler

Re:List of games that Buddha would not play on Friday December 31, 2021 @01:44PM (#29751103)
Enlightened people, very boring at parties.
Re:Una Corda, a piano with one string per note on Thursday January 24, 2019 @11:25AM (#18990064)
I had the same question, the piano is already a well developed and standardized instrument from centuries of revision and engineering. Returning to one string seems like a step back into the past. The video is really nice though, explaining how they came to this idea, and now I want to hear one of these one-string pianos! From Nils Frahm:

"It really felt like a brilliant new instrument, it was so nice. First time in my life to have kind of like a new piano. It sits in between a clavichord, guitar and a harp, and that was exactly what I wanted."

Re:Why I use old hardware on Wednesday January 23, 2019 @10:33AM (#18978998)
Oooh, I like that idea! I'm gonna try to figure that out today.
Re:Why I use old hardware on Wednesday January 23, 2019 @10:30AM (#18978974)
One of the great beauties of working with scripting languages, they work just fine on lighter laptops. The MacBook Air is a great machine for the node/python/php programmer on the go.
> It turns out what they had tried to do was harder than expected

Literally every business/engineering project ever.

Brain hack: Formulate your thinking in terms of positive statements.

Example:

* Negative statement: Don't use object inheritance, it leads to confusing code.

* Positive statement: Try to make your inheritance tree flatter, this helps make more straightforward code.

The negative statement is both discouraging and ambiguous. When you tell someone or yourself to not do a thing, it begs the question, "What should be done instead?" Meanwhile, the positive statement is incisive and gives the listener better direction.

If you can spot something to not do, you can probably come up with something to do as well. This shift in thinking seems small, but has had a profound impact on how I interact with the world, and improved my outlook on life, work and relationships.

There are also way fewer cars in those photos that anywhere comparable in LA today. Maybe these things are related?
Thank you, that really helps! The original article alone is pretty confusing.
Re:Never-Ending Man: Hayao Miyazaki [video] on Thursday November 01, 2018 @01:26PM (#18356288)
Yes! This makes me so happy that Miyazaki would unretire and make more movies!
Re:Geospatial indexing on Hilbert curves on Wednesday August 15, 2018 @08:07PM (#17770843)
The "where is this child" query is unaffected by the ordering, whether Z-order, Hilbert, or other. However querying "which children are in this area" requires that you come up with corresponding ranges along the curve. This is where the Hilbert curve is slightly better because in many cases the same area can be covered by fewer ranges.

Follow up questions: How do the number of ranges compare with the different orderings? How much does having fewer range segments affect database query performance? Does it make up for the added computational complexity of Hilbert curves? I've not answers, but these can be answered by science.

Re:Geospatial indexing on Hilbert curves on Wednesday August 15, 2018 @05:17PM (#17769860)
> Instead of projecting the Earth directly onto a single square, it projects the Earth onto the 6 faces of a cube enclosing the Earth and then applies an extra non-linear transformations to reduce even more the deformations. Each cell in s2 is in fact part of one of six quadtrees that describe the whole planet.

That's a super cool detail! I once implemented a 2D index using a Z-Order curve that directly translated lat/lon coordinates to a linear ordering. It works well enough because nobody really lives at the poles--the search regions with a single projection get really obtuse there. Projecting the earth onto a 6-sided die is a really elegant solution to that problem! Go go Google engineering!

Re:Simple, correct, fast: in that order on Monday July 09, 2018 @09:08PM (#17494690)
Yes! So much covered in so few words. This ordering works shockingly well for constructing robust solutions to complex problems.

Keep it simple. Do what needs to be done now, leave off for later everything else. By the time later arrives, what the project needs will have gone in new and surprising directions. Refactoring complex and coupled code into logical discrete units pays off in multiples down the road. Removing that which is no longer needed is like giving your whole team extra time to breath and new room to think. For all the times that simplifying also solved the two other problems, we used that time for making more cool stuff.

Re:Show HN: Interactive guitar scales diagrams on Sunday June 10, 2018 @11:46AM (#17278631)
First, it must be said that this is super cool, and I love it so much!

I've got questions...

1. What is the relationship between the bottom colored dots and the colored notes? I'm looking in the "scalar" tool, key of C. It looks like the bottom dots are for coloring a cross-fretboard position. I would have expected the red bottom dot to mark the position from C on the 8th fret for all the scales, as it does for pentatonic minor to dorian. However pentatonic and blues major are on the 5th fret position, and major is in open position.

2. The pentanizer, what is it? I also don't understand the relationship between the colored and numbered dots and the fretboard coloring. The UI has a strange way of switching the numbers if I switch the scales. E.g. select pentatonic major, red dot, and 1 dot. Then switch to pentatonic minor, and it auto-switches to 5 dot. Overall, it's pretty disorienting the relationship between these design elements and the scales. Or I've fundamentally misunderstood the tool.

3. What tools did you use to make this? Will you open source?

Thank you, you're really killing it!

Two weeks. I refer to it as the cussing period because it's full of situations where I know something is possible and easy, but I have to figure out how to find the right documentation and put together the peculiarities of the new language in my mind. Usually that feeling of frustrated helplessness goes away after two weeks.
Re:Clever ideas that failed (2010) on Monday December 25, 2017 @05:17PM (#16005963)
In my circle of peers, and perhaps beyond, we use "clever" as a pejorative. It roughly means what you said in the last sentence, "more of a display of cleverness than actual cleverness." In other words, calling a piece of code clever, indicates that it was made too complicated to easily grok. We also have an explicit goal of making code not clever.
Re:Show HN: Dynamic image size generator on Wednesday August 16, 2017 @02:30PM (#15029921)
Nice! This is definitely an important tool when creating a site traffic in images to be displayed across a variety different sized screens. Having worked on this type of project before I'll mention a few challenges you have not yet addressed.

At some scale point, your single DynamicServer server will have more resize requests than it has CPU cycles to serve. The straightforward solution will be to add more DynamicServer instances. This means that your source image directory will have to be accessible from both instances. It also duplicates your cache directory, meaning a single image size could get generated on both servers. You might solve that by having a shared image cache network directory. Another solution could be to use a hash mechanism to determine a particular backend server from the load balancing layer, so any particular image would always be generated on the same instance.

Something interesting happens when people upload an image to their newsfeed. If it's a public newsfeed, there can be a good many requests of the image within the next several seconds at upload. This means that you can get multiple cache miss requests at the same time coming into your DynamicImage server. Your PHP processes are vertically partitioned, so your server will be simultaneously generating the resize. For users with only a few friends, this is a small waste of CPU cycles, but for users with massive user bases (e.g. Britany Spears), a single upload could grind your DynamicImage server to a halt just because of simultaneous duplicated work. Varnish (and other load balancers) can solve this by collapsing multiple requests to the same resource into a single HTTP call (https://varnish-cache.org/docs/3.0/tutorial/handling_misbeha...).

Re:Programming won't be automated, or it already has been on Tuesday July 11, 2017 @10:30AM (#14744442)
Here is an interesting development contradicting edA-qa mort-ora-y's premise, AI Software Learns To Make AI Software: https://www.technologyreview.com/s/603381/ai-software-learns...
I really love this article about Fan Hui and AlphaGo, [The Sadness and Beauty of Watching Google's AI Play Go](https://www.wired.com/2016/03/sadness-beauty-watching-google...). It's the first time I've read a balanced intimation of what it can be like interacting with artificial intelligences. I come away from this and the Kasparov article feeling that AIs will be friends as well as partners.
It's not boorish. I only learned about this practice of new American slavery from a friend who had come out of prison recently. Not enough people are talking about it, so nobody knows this is what's going on. Please, keep talking about it!
I wonder if this list comes out any differently today, 12 years later.
It's a secondary work, "The function of criticism: On T. S. Eliot’s essay on the evaluation of literature" by Denis Donoghue.
Re:Does irrationality fuel innovation? on Sunday April 09, 2017 @01:34AM (#14070660)
Paul Feyerabend argues as much in [Against Method](https://en.wikipedia.org/wiki/Against_Method), that "science is an anarchic enterprise." Our greatest innovations were created by people who were claiming "irrational" things against the backdrop of the knowledge of their time.
Re:“Design Patterns” Aren't (2002) on Tuesday November 01, 2016 @06:49PM (#12850829)
I'm a 40-something programmer learning to weld. It's really fun! You can do it too.
We should send even smaller nano-probes that would be even easier to accelerate and would have the capability to collect dust and build it into larger probes that would talk back to us when they come online!
Re:The rituals we perform and the games we play on Monday April 11, 2016 @07:22PM (#11475949)
An oblique point, but we apparently have more in common with apes than monkeys. Admittedly, you could have just as easily compared us with wolverines. Nicely written!
Re:N-queen puzzle in 4 lines of Scala on Monday April 11, 2016 @01:49AM (#11469855)
lol. ty!
Re:N-queen puzzle in 4 lines of Scala on Sunday April 10, 2016 @11:50AM (#11466680)
Ironically, the article linked, "Writing good code: how to reduce the cognitive load of your code", itself has a high cognitive load. It's grammatically irksome. The opening sentence has no verb, "Low bug count, good performance, easy modification." Further it uses poor non-examples of the points the author is trying to make. For example, Yoda conditionals are quirky, but do not increase cognitive load. They were also called out as a good habit in Code Complete, the very book the author sites as the long form of what he's writing about.

OTOH, the gist has a low cognitive load provided one understands funtional notation. I can look at his four lines of code and see that this is a correct solution, because each atom of the function can be reasoned about separately and then composed into the whole. The same is much more difficult with the looping solutions that have been presented as peers to this comment. These solutions have a higher cognitive load because proving correctness requires a full trace of the algorithm, while keeping all of the variables in working memory as you go.

tl;dr; The OP presented a clear and clever solution. I'll allow it. ;)

Re:N-queen puzzle in 4 lines of Scala on Sunday April 10, 2016 @11:06AM (#11466421)
Love it! That's a really clever use of the Set collection type to pair down non-solutions.
Re:When a Self-Declared Genius Asks You to Read His Masterpiece on Tuesday February 16, 2016 @02:33AM (#11108409)
This is a really touching open response to an inner demon that I, and many people, wrestle with. Like Alan, I too have childishly and bitterly demanded recognition from what seems like a cold and uncaring world. But seeing the system from within, it's just a bunch of people like me, working to make and find awesome things as best they can. It fills me with hope to know that our communities, online and otherwise, are created by and for ourselves. We don't have to be separate and lonely Alans, instead with some nurturing and care we can enjoy our time in the company of peers.
Re:Céu: Structured Synchronous Reactive Programming on Wednesday July 08, 2015 @08:05PM (#9855441)
My favorite singer is Céu. https://en.wikipedia.org/wiki/C%C3%A9u

Older »