How do you get the length of a string literal in C?
Twitter has the limit of 140 characters per tweet, and this limit is even reduced when you add media contents like images. Now that Twitter is “consumed” through the web, there wouldn't be serious reasons not to rise that limit.
When money will begin to run out and we'll realize (again) that there's no value in it, barter will become the most popular way of exchanging and sharing resources: everyone will trade things for things, instead of promises of things for things.
There's a way of thinking that worries me: a “new operating system” must look graphically different from the previous version of the same operating system. Premise: I have been upgraded to Android (so-called) Lollipop. (Second premise: I own a Samsung Galaxy S4 — something I regret, but it's too late and I'll keep it till I die or till it breaks — whatever happens first).
I have often wondered why C hasn't any kind of function overloading. The typical answer is that we don't want to live with name mangling in C — the hell of the C++ — that would break a lot of things which must stay as they are. I agree… except that you don't need to implement it the C++ way when you have a bright example like Fortran.
There's an italian weekly magazine (La settimana enigmistica) that once in a while publishes “A puzzle with Susi”. Susi is a cute and smart girl who accepts to solve challenges her friend Gianni is used to throw to her.
In one of my italian blog I've tackled two (so far) of these puzzles using Prolog and Haskell.
Are you using VanDyke's SecureCRT? Let's suppose you have forgot a password of one of your configured sessions: you can still log-in, since SecureCRT has stored it, but if you need to use that password from elsewhere and you can't remember it, what can you do?
While Golfrun specifications are becoming foggy day by day (month by month, year by year…) and C++11 implementation of a Golfrun interpreter is still far to come, I am experimenting with the Go language, as done in the previous post. Thus I have decided to implement an interpreter of an esoteric programming language I liked very much: SNUSP. In the past I have already written a C interpreter for Modular SNUSP: it was my first contribution (as far as I can remember) to RosettaCode; then, I uploaded it to SourceForge too.
Now I have implemented an interpreter for SNUSP using the Go language. You can find GoSNUSP code on github.
GoSNUSP can interpret (bugs apart…) Core, Modular and Bloated SNUSP.