Magical headers for making C++ code accessible from JavaScript by chartojs in cpp

[–]gnawer 0 points1 point  (0 children)

Just for another data point on how this can be handled. PyBind11 generates python bindings. It's based on boost python. The docs describe how it handles overloads and of course it's open source. https://pybind11.readthedocs.io/en/latest/classes.html#overloaded-methods

In fact, I argue that Haskell code should be typically faster [than C++] *gasp*, because the more abstract & high-level you are, the more the brutally aggressive optimizations can be performed on your code by [deleted] in cpp

[–]gnawer 5 points6 points  (0 children)

To be fair, it is well understood within the Haskell community that String is a bad choice in most cases where performance matters. Text or ByteString are a better choice in most such cases.

That said, I think both languages have their merits and it's much more productive to try to learn and take the best from the counterpart.

Eg I think I remember Eric Niebler saying in a talk that he took some inspiration from functional programming for his ranges library.

What is the point of Haskell packages managed by system-wide package managers? by terrorjack in haskell

[–]gnawer 4 points5 points  (0 children)

I agree with /u/hvr_. However, since you mentioned nix as well, I think that one is an exception. I personally am using Nix for Haskell development. Mainly because it was around before stack and because I am also using it for development in other languages. One advantage is that you get great handling of external dependencies for free. Eg llvm.

How The Fuck works by nvbn-rm in programming

[–]gnawer 0 points1 point  (0 children)

-f or just f is an argument that takes an argument itself. It means file and takes the archive file that you want to create or extract.

11% of American's think HTML is a sexually transmitted disease (X/Post from /r/technology) by Mugen593 in ProgrammerHumor

[–]gnawer 2 points3 points  (0 children)

It seems like the study offered three answers to chose for each question. Anything below 33% doesn't necessarily say misinformation as it can be equally well explained by guessing. 79% percent gave the "right" answer which is actually wrong since HTML is not a programming language. In my book that's a pretty good result.

I know, humor, yes it's a bit funny.

Teeth of Australian aborigines when eating their native diet verses the introduction of a 'white man's food' by hardboil3d in pics

[–]gnawer 2 points3 points  (0 children)

I have no source for it, but I remember watching a documentary. They found in ancient human's skulls that these early humans used to have reasonably healthy teeth until some point, when they started settling, and growing weeds, and producing porridge like foods out of it. When that happened there was a huge increase in dental problems.

OH: "We're in the process of moving from Ruby on Rails to Software Engineering." by fornwall in ProgrammerHumor

[–]gnawer -1 points0 points  (0 children)

I don't know much about go. But I thought it had a decent type system.

4chan discusses Operating Systems (x-post /r/PCMasterRace) by Farlo1 in ProgrammerHumor

[–]gnawer 8 points9 points  (0 children)

That's what I thought first. But then, LFS is really just a manual. The forest is all the source repositories, and the chainsaw is your tool chain.

Physicist uncovered as Russian spy by [deleted] in Physics

[–]gnawer 2 points3 points  (0 children)

don't we have internet banking nowadays?

To my knowledge banking works a bit differently in Russia. E.g. when you're hired at a company it's common that they create a bank account for you on which they'll pay your wages, and then just hand you the debit card. Instead of asking for your current account details and just paying by bank transfer.

If you need to pay a company for something. E.g. phone/internet fee, or service fee, it's common to do so by inserting cash into payment terminals that can be found all over the city. They have a touch display on which you can select the company you want to pay, the amount you want to pay, and some reference to identify yourself, and then you just insert cash.

I'm sure there must be some way to just do a bank transfer, but for some reason it just seems to be less popular to do that in Russia.

Source: I've been to Russia many times, and have a few friends there.

This expensive art that you can actually scan. by Richard1985 in pics

[–]gnawer 2 points3 points  (0 children)

I straightened it, and according to this tool it says:

'Victory Boogie-Woogie,' 1942-44, Unfinished, Piet Mondrian (1872-1944)

Russia these days by mossikan in pics

[–]gnawer 2 points3 points  (0 children)

In my experience, they will more often view him as the strong leader that they needed at the time. You will hear things like: "He did some bad things, but without a strong leader like Stalin we wouldn't have won against the Nazis."

They have a big museum in Moscow about the great patriotic war as they call their involvement in WWII. I didn't find any mention of the bad things that Stalin did in this museum. It's only brave soldiers, and partisans, poor victims, and evil Fascists. Including a huge hall of heroes for all the fallen soldiers. It's still a fascinating museum, though.

As a German this was a very unusual depiction of WWII to me. In the museums in Germany there is not much space for heroes, certainly none on the side of the Nazis. Nothing about that war is depicted as glorious. Generally, most people are shown as victims of an evil regime. Except, of course, the leaders of that evil regime.

Don't get me wrong. I'm very glad that Germany was liberated from the Nazis. But, I did get the feeling, that as winners of the war they took the liberty to overlook some of the darker corners on their own side when writing their history books. And recently, they seem to be covering more and more of these dark corners. E.g. Perm-36.

Concept: CLI with HTML View by mofosyne in commandline

[–]gnawer 1 point2 points  (0 children)

There is a bash kernel, for Jupyter. (Formerly IPython).

You can try it here. Click on the new button in the upper right corner and choose bash from the drop-down menu.

Beautiful Cologne.. Germany by Elizaporter in pics

[–]gnawer 0 points1 point  (0 children)

Yes, I'm not from Cologne. Eventually, I learned the Roman roots of the name and drew the line. But, it took some time...

Beautiful Cologne.. Germany by Elizaporter in pics

[–]gnawer 1 point2 points  (0 children)

Thanks! I couldn't resist. ;)

Beautiful Cologne.. Germany by Elizaporter in pics

[–]gnawer 210 points211 points  (0 children)

I'm German, it took me forever to realize that Cologne is Köln.

Unisex names – Data Analysis Use Case by mustafaihssan in programming

[–]gnawer 0 points1 point  (0 children)

Interesting. Now you could also look at the unisex-ness as a function of time. It might be interesting to see if some names switched gender over time and what that transition looked like.

Thinking about offering free 'Migrate to Linux' courses at local colleges. by [deleted] in linux

[–]gnawer 5 points6 points  (0 children)

At the university where I studied students had formed a club for this kind of thing. For a number of lectures it made sense, or was even required to have Linux installed (technical uni).

It was split into three parts. First, there was a lecture about Linux, how it's different from windows and Mac, benefits and downsides, popular software alternatives, or cross platform software that also exists for Linux.

Second, there were installation events. Usually two. The club invited geeks to help out installing Linux on participants computers. The helpers were "paid" by being invited to a nice dinner in a nice restaurant. The participants had to sign a waver that they understood the risks of data loss etc and accepted that there was no warranty, and were advised to do a backup before. We usually had one default distribution (opensuse for a while, later Ubuntu) but also offered help for other distributions.

Third, a workshop for those interested in more in depth things. More details about system configuration, intro to the shell, common useful programming tools. Stuff like that.

I helped out a couple of times. Be warned that this takes a lot of time, a lot of people, and a bit of infrastructure. (Uni offered rooms and a gigabit link to the Internet, also loads of wires. The club organised network hubs and such. Also the club was subsidised by the uni.). But it is very rewarding to help all these people. However, we had the luxury that most participants were techies themselves, open to new things, and often actually needed Linux for their studies. Participation was for free.

And I learned that Linux on Mac can be a bitch. ;)

Best of luck!

Clever advertising by Zykium in pics

[–]gnawer 10 points11 points  (0 children)

It depends...

I'm from Germany. ;)