170 karma · joined Dec 5, 2014 (11y ago) · 81 submissions
comment 10y ago · link · parent
comment 10y ago · link · parent
The vast, vast majority of 'backend servers' are written in C++. (Those that aren't are legacy that was written in C.)
P.S. Of course, for some people when they say 'backend' they really mean 'anything not Javascript'. In that case PHP is the world's most popular backend language, and that would be just silly.
P.P.S. The disconnect of the online discussion bubble with reality always shocks me. D? Go? Seriously?
comment 10y ago · link · parent
This has all but ended now, and people shopping for their second or third router will be making different decisions.
38.
The tab programming language version 4.0 relased. (Now with parallelism.)(tkatchev.bitbucket.org ↗)
3 points · by otabdeveloper · 10y ago · discuss
comment 10y ago · link · parent
Yes. In fact, under Linux oftentimes spawning a thread and then running a system call can be faster than just running a system call.
> Conventional C++ wisdom advices against it.
With 32 bit CPU's you might run out of virtual memory quickly, since each thread allocates virtual memory for its stack.
With 64 bit CPU's there are no issues. (Also never forget that virtual memory isn't real memory, it's just a page counter.)
comment 10y ago · link · parent
'天', "Heaven", is literally a pictogram of the 'invisible man in the sky'.
The ancient Chinese were monotheist, and Confucius was no exception.
Trying the fit modern norms over historical people and cultures that existed 3000 years ago silly, don't do that.
comment 10y ago · link · parent
https://en.wikipedia.org/wiki/Universal_approximation_theore...
Neural networks are an algorithmically simple way to approximate any mathematical function. So, really, why _wouldn't_ you think this?
Ultimately, almost all boardgames can be reduced to mathematical functions.
comment 10y ago · link · parent
I'm old enough that I actually do remember those days. Back then we had "works best with Internet Explorer" and MS Office viruses. I don't want to go back to that world, rolling updates make the world better for everyone.
comment 10y ago · link · parent
A script like this gets you 95% of the way there:
mkdir AppDir
mkdir AppDir/bin
mkdir AppDir/data
cp $INSTALLDIR/app AppDir/bin
cp -r $INSTALLDIR/data AppDir
cp `ldd AppDir/bin/app | grep -o '\W/[^ ]*'` AppDir/bin
cat << "EOF" > AppDir/app
#!/bin/bash
SCRIPT_PATH=$(dirname $(readlink -f $0))
$SCRIPT_PATH/bin/ld-*.so.2 --library-path $SCRIPT_PATH/bin $SCRIPT_PATH/bin/app $*
EOF
(Sometimes I wonder if people make a big mystery of Linux app distribution on purpose, to discourage distribution outside of proper, secure channels.)comment 10y ago · link · parent
Parts of it probably should be replaced with safer implementations, but as long as you're going for 100% compatibility you're still putting lipstick on a pig.
comment 10y ago · link · parent
In reality, however, the sensitive part is the 'who' and 'when', not the 'what'. HTTPS makes sense for hiding passwords or bank data, for everything else it's mostly pointless.
(If you've watched any police procedural shows you've noticed that they don't need wiretaps to make an arrest, a destination phone number and time is all that's needed.)
comment 10y ago · link · parent
The experience of migrating to DVCS's. (Anecdotal, I know, but still...)
>...but with git you're pretty much stuck with the "standard feature branching" workflow.
Git is a loose collection of file manipulation utilities, it can be cobbled together to support even the most insane workflows.
comment 10y ago · link · parent
The reason git ended up overtaking mercurial is because git is more flexible. Programmers for closed-source enterprise projects worldwide flocked to git because git can be massaged into any existing development process almost painlessly.
Mercurial, in contrast, is "opinionated".
(Before you mention github -- the timeline here is also backwards, github became the de-facto standard riding on the coattails of git's success.)
comment 10y ago · link · parent
I beg to differ: http://tkatchev.bitbucket.org/tab/
(Sorry for the shameless self-promotion, but you're wrong that nothing new can be invented.)
comment 10y ago · link · parent
Those requirements contradict themselves in numerous ways. As always, engineering tradeoffs are paramount.
As for "statically typed, memory safe, no VM" -- C++ fits all those perfectly. (Provided you put in the effort of learning C++. There's another tradeoff you'd need to keep in mind.)
comment 10y ago · link · parent
Inventing good ontologies is a problem that's orders of magnitude harder than a problem of making a filesystem hierarchy searchable. Look at Wikipedia -- despite all this time and all this truly immense planet-size effort, they still haven't figured out a good categorization system!