HNHacker News
TopNewBestAskShowJobs

pmr_

724 karma · joined July 24, 2010

submissionscomments
pmr_··on Container Algorithms
Just look at boost and you will get an idea of what other containers are useful. Here is a quick list of the top of my head:

- flat set/map - multi_index - static_vector (called SmallVector in LLVM) - bimap - intrusive containers - various from Boost.Heap

pmr_··on Container Algorithms
This is achieved by overloading the operator|, although there is some special hackery to use static function objects to omit the constructor calls.

The first mayor library to use this syntax was Boost.Range and it is now being proposed as the syntax of standard ranges.

pmr_··on Startup creates VetiGel, a plant based polymer that seals wounds in seconds
The image in the reddit thread is clearly taken from the video that is part of OP's submission, yet commenter KanterBama identifies it as QuickClot. QuickClot however is a powder so I think his comment should not be considered factual information.
pmr_··on Sprout
This might seem like a minor issue but it annoyed me like hell. At that point I knew all I was seeing were the visions of a drunk marketeer anyhow, but at that point I realized that they weren't even bothering with reality.
pmr_··on Sprout
I'm going on a tangent here. The spork is the preferred tool for eating by many outdoor enthusiasts.
pmr_··on Autumn
OpenGL has never been implemented in terms of DirectX on windows. No idea what you are talking about here.
pmr_··on Germany’s great tuition fees U-turn
No dice has been cast. Things simply revert back to how they always have been. One important thing to know is that German universities are not handled by the federal government but on a state level (as all things educational) but there is a broader framework to keeps things aligned.

Only some states decided to demand tuition for their universities in 2006 (some later) and most quickly stopped again after a few years.

pmr_··on Germany’s great tuition fees U-turn
There seems to be a confusion of words here. You seem to make a difference between tuition and tuition fees while the Wikipedia [1] article suggests that those terms mean the same in different English dialects.

As for Germany: almost all public Universities still take fees (usually around 100 Euros per semester, tax refundable). Tuition was a new thing and is what has been abandoned again.

1: http://en.wikipedia.org/wiki/Tuition_payments

pmr_··on An Unusual Language That Linguists Thought Couldn’t Exist
Compare the article with any of the papers it references. This is pure fiction. All papers clearly state the sign language in question shows emergent regularities which clearly means that it is on its way towards duality of patterning. It is special since it is a great opportunity to study the phenomenon as it happens.
pmr_··on Moral Judgments Depend on What Language We’re Speaking
Neither of the two languages a bilingual person speaks is considered foreign. Otherwise the person would not be bilingual. What would be the result of such a study? Keep in mind that in linguistics the difference between being a native speaker and having learned a language after the critical period is considered huge.
pmr_··on An Unusual Language That Linguists Thought Couldn’t Exist
This clears up a lot. The whole article felt dubious from the start since it was lacking any examples of the language or an explanation of how functional the language is. The paper makes it clear: the language is young and regularities already emerge and it is interesting because the phenomena has not been studied "live" yet.
pmr_··on Crow – C++ Microframework for Web, inspired by Python Flask
You can still do metaprogramming on single character constants and with a bunch of really ugly hackery make it somewhat pretty.

You might be interested in metaparse [1] which can greatly simplify compile time parsing of strings but has a very steep learning curve.

[1]: http://abel.web.elte.hu/mpllibs/metaparse/

pmr_··on The Abstinence Method – Dutch farmers say no to antibiotics for livestock
Apparently those measures have not had an negative effect on productivity in the Netherlands, so I do not see where you are coming from.

And you are also forgetting that this is done to prevent the spread of life-threatening diseases for which we do not have a working treatment yet and the emergence of new diseases of that kind.

Those are hard problems. Hunger in the first world is not (we already overproduce any kind of food) and even if meat would become scarce we could just use a fraction of the resources which are now used to raise livestock to feed ourselves.

pmr_··on Inside the Operating System Edward Snowden Used to Evade the NSA
I assume that no one in its right mind would refute a nuanced criticism of Open Source, but the grandparent just didn't think it necessary to be nuanced or elaborate or make some concrete point at all. He just went for the quick pun and is being down-voted for it.
pmr_··on How I Came to Write D
Interestingly there is another article by Walter Bright on writing your own compiler on DrDobbs [1] in which he explicitly recommends to write the parser yourself and I have received similar advice by others that know how to implement compilers. My personal experience in implementing a subset of C turned out similar.

[1]: http://www.drdobbs.com/architecture-and-design/so-you-want-t...

pmr_··on What Really Happened in that Double-Blind Violin Sound Test
I found this article [1] from another participant in the study a much better read. He also is a violin maker which could explain why he is happy with the results, but he isn't trying to justify any of the results. His closing words say exactly the same as the linked article, but in a very sober fashion.

[1]: http://www.artsjournal.com/slippeddisc/2012/01/exclusive-how...

pmr_··on Man's high-tech paradise lost: bionic eye removed
This argument can be made for many different disabilities (mental as well as physical). While I don't think we should stop pursuing development of cures we should refocus our efforts on enabling the afflicted to live the life they want.
pmr_··on Microsoft Open Sources C# Compiler
A Mono developer should avoid looking at the .NET code at all costs. That would only set them up for patent law suits.
pmr_··on Warp, a fast preprocessor for C and C++
AFAIK the main reason for implementing modules for C++ was to show that it can be done, which makes standardization of a major feature much more likely.

As long as there is only one compiler and no guarantee that you will not have to change everything once again as standardization is complete no one is going to touch a large cross-platform codebase and add module support.

pmr_··on Warp, a fast preprocessor for C and C++
Clang modules for C++ are going nowhere as long as the concerned working group of WG21 isn't proposing anything.

While it seems that everybody has almost the same idea how modules should look as part of the language almost no one can agree on how they should be specified or what part of a module should actually be specified at all.

pmr_··on Warp, a fast preprocessor for C and C++
Which other languages use the C/C++ preprocessor? I've seen it used for generating data or other source code when a preprocessor comes in handy, but never as a full-fledged component of another language.

I also think that a modern language that uses includes instead of modules is just outright insane.

pmr_··on Warp, a fast preprocessor for C and C++
Hard problems for C++ compilers are keeping track of where a piece of code originated and providing good diagnostics in code expanded from macros. Can warp help with this or was speed such a paramount goal that the rest of the tool-chain cannot provide good diagnostics as soon as macros are involved?
pmr_··on Git 2.0 release notes
I used to do this for my .emacs files and modules. It worked quite well, but in the end package.el made it unnecessary. Since then I came to the conclusion that git submodules are not a real substitute for a package manager.
pmr_··on Confessions of an Intermediate Programmer
There are only very few universities that will actually give you a proper indoctrination in most modern software engineering practices. Usually you get a bit of horrible object orientation, a few stern words about coding standards, and the lovely advice to "always test your code". If you take a Compilers course chances are the words "static analysis" will be used a lot.

I'm sure there are exceptions to this, but they are hard to find and universities aren't entirely to blame for it. Some parts of software engineering move fast and there is a justified fear to teach students things that will be useless by the time they graduate. So the focus is more on laying a solid ground-work.

pmr_··on [dead]
Russia's military presence in the Black Sea and on the Crimea predates the founding of the United States of America. I agree that Russia might inflate the reasons for its intervention, but there is a lot of geo-political influence at stake here. The hypocrisy surrounding this scares me. If the NSA is spying on foreign citizens, other governments or foreign corporations everything is well because protecting national interest is OK. If other countries are faced with similar decisions and act in their own national interests, its 19th century style behavior and has to be condemned.

> "You just don't in the 21st Century behave in 19th Century fashion by invading another country on completely trumped-up pretext," Mr Kerry told the CBS program Face the Nation.

Coming from a US official this sounds very much like a bad joke.

Imagine a different scenario: One of the the less stable EU members with a US base (basically all of them) has a revolution and the winning party plans to get rid of the US military bases. What is going to happen? Is the US just going to give up on it? Does it depend on the importance of the base (think Rammstein)? I'm sure no one doubts that the US would intervene in some way.

pmr_··on Colbert turns his funny gun on Snowden in RSA keynote
Ironically, none of the officials that caused the last Iraq war have even been charged or investigated despite failing to produce any evidence of WMDs or massive support for Al-Qaeda.
pmr_··on The Emacs Problem (2005)
Re-reading this after a few years was interesting. At the time it really seemed like the Emacs ecosystem is stagnating but this has changed during the last two years: package managers, crazy good, well maintained extensions (magit, org-mode, flycheck, Gnus), and small language changes. We even had an Emacs-only conference! ;)

Still, elisp is elisp is elisp and there is no getting around that fact. The last Common Lisp rewrite/transformation has, AFAIK, stalled. 'cl is still not welcome in core packages. Just staying with the language and dealing with its quirks has proven very effective and I think this is in a large part due the flexibility of being a Lisp. It might be the wrong language for text-processing, but is the right language for ancient software that tries to stay recent.

pmr_··on Atom
So why is every text editor I have ever seen embedded in a website an abomination?

> text display, scripting, styling

The only thing that really matters is scripting. Every serious editor has solved displaying text and styling since ages and those two points aren't even that important in programming languages. All you want is a syntax aware highlighting. Maybe underlines and a little bold here and there.

Scripting is the really hard part. There are many flavors, languages, APIs to chose from. Just because you now can script things in <hip-language-of-the-day>, the problem isn't solved. My editor uses a lisp dialect and I'm perfectly happy with it, not because of the language choice but the APIs and amount of integration.

One thing that is incredibly important for text editors is speed: something web engines are notoriously bad at.

pmr_··on IMDB Top 100K Movies – Analysis in Depth, Part 2
No one ever is considering what Granny thinks when movie or television ratings are concerned. The age groups normally considered are 18-34 or 18-49, because those are the ones which far outweigh all others in terms of commercial interest. Also, all other age groups don't make up a significant part of the movie going crowd so even if they would contribute ratings it wouldn't make much of a difference.
pmr_··on Nokia announces the X and X+, its first Android phones
> differentiated experience

I still can't believe that decision makers actually believe that customers want that. Sure, it makes for great bullet points on the packaging, but most consumer in the lower segment just want something that is familiar to all the other stuff they have. Things you will never hear an Android user say: "That Samsung Whatever Cloud App is really useful.", "That second App Store of my carrier is full with great Apps.", and "I wish those buttons were even more different from my old Android phone".

← PreviousPage 2 of 9Next →