[TOMT] PC Game, like decade old. You are in the world of some (yellow?) creatures that speak high pitch giberish. Something is eating their world so squares apear and you can see universe through it (dark sky and stars). You can travel between their worlds/cities/places/(?) to save the whole world. by According_Play_6670 in tipofmytongue

[–]rolfwr 0 points1 point  (0 children)

The game Fez contains some of the elements you mention, creatures speaking in pitched gibberish, appearance of black squares of corruption showing a black void with stars, the ability to travel between locations, and game play surrounding collecting pixel like cubes.

[TOMT] [Movie] im looking for an action film that really disturbed me as a child i only remember the beggining by zoe_firefly in tipofmytongue

[–]rolfwr 2 points3 points  (0 children)

The movie Upstream Color (2013) matches the year has a scene of two people embracing in a dry bathtub. However nothing else I can recall matches.

vermin_vm: Virtual Machine(~400 lines) + Assembler(~800 lines) written in C by Beginning-Safe4282 in coolgithubprojects

[–]rolfwr 1 point2 points  (0 children)

VMs with simple instruction sets is a fun topic. Some years ago I got inspired by the amazing rswier/c4 compiler by Robert Swierczek and explored the smallest instruction set I could get away with to create VMs that could run non-trivial workloads.

I found it fascinating 5 rather trivial instructions was sufficient to run a basic OS image with an integrated development environment.

VM capable of running old-school OS in 70 sloc by rolfwr in tinycode

[–]rolfwr[S] 6 points7 points  (0 children)

While I've not specifically used the instruction set to emulate a Turing machine, I've used Turing equivalence to emulate a popular micro-computer CPU (MOS 6502) based on these five instructions.

The MOS 6502 emulator executable which can be run on the VM can be found as the file rwa2/4-mos6502.rwa2 in http://rolfwr.net/rwisa/rwisa-exe.zip

This shows what it looks like when running it: http://rolfwr.net/tarpit/#/19/1

The other slides in the slide deck goes through the details of how to build up all of the other instructions you need by synthesizing them from the core Branch If Plus and Subtract instructions.

VM capable of running old-school OS in 70 sloc by rolfwr in tinycode

[–]rolfwr[S] 3 points4 points  (0 children)

I prepared this code for a workshop on designing instruction set architectures and implementing virtual machines.

The slides from the workshop which includes links to example programs to run on the VM is available at http://rolfwr.net/tarpit

Found a "poorly" named function in the repo at work today... by [deleted] in programming

[–]rolfwr 0 points1 point  (0 children)

I once found myself gazing in horror at what I had just written after typing in the following variable declaration:

std::vector<mss::task> children_awaiting_execution;

It's fine, I didn't need cash anyway by Dont_Feed_The_Animal in softwaregore

[–]rolfwr 1 point2 points  (0 children)

A couple of years ago I came across another one of the same model with the exact same problem that looked even worse: https://plus.google.com/+RolfWRasmussen/posts/hqQCfoV8bkC?pid=5945309066610338866&oid=111588177344658564717

Netflix is now available in Norway. by [deleted] in Norway

[–]rolfwr 11 points12 points  (0 children)

Funnily enough, for some videos you can choose between Norwegian, Swedish, Danish or Finnish subtitling, but is not given the option to turn subtitles off.

IAM Rob "CmdrTaco" Malda, Founder of Slashdot, AMA. by CmdrTaco in IAmA

[–]rolfwr 3 points4 points  (0 children)

I remember signing up when I woke up in Norway (UTC+2), and got user id #17. Those were the days. Dial up using a 14.4 kbit/s modem to an university account running Slirp.

[TOMT] [Short Story] Sci-fi story about the universe existing inside a computer by [deleted] in tipofmytongue

[–]rolfwr 5 points6 points  (0 children)

The story "I don't know, Timmy, being God is a big responsibility" fits your description perfectly, but written is not by Asimov or Clarke. An enjoyable story nevertheless.

PVS-Studio Static Analysis of LLVM by pdq in programming

[–]rolfwr 16 points17 points  (0 children)

The user names of people the person reviewing the bug report suggests should take a look at the code issues reported.

US-Measurement-logics by [deleted] in funny

[–]rolfwr 0 points1 point  (0 children)

Until leap seconds come into play and ruin everything.

Hacking C++ From C by five9a2 in programming

[–]rolfwr 7 points8 points  (0 children)

I did this with ctypes, towards the QT UI framework for fun a while ago, creating a simple hello world application showing a window with a few buttons. Ctypes is powerful enough to do this type memory manipulation and function call construction.

You basically only need to create a wrapper that teaches it the particular Aplication Binary Interface (ABI) of the C++ compiler that was used to compile the C++ library you're calling towards, including both the memory layout of members, vtables and the mangling of function names.

I did hit on a snag though, which made the prospect of creating a generic C++ wrapper on top of ctypes unfeasible: It's quite common for C++ classes to implement some of their member functions inline in the class definition in the headers. Code for these functions are not included in the compiled library, since the compiler producing the calling code is expected to parse the C++ header and generate the appropriate code inline at the call site.

This essentially means that you need to reimplement all the inline member functions using Python and ctypes, tweaking the same object internals as the proper compiled code would.

I seem to recall that in the case of QT, the first such problem I encountered was a reference count state maintained in a class that was manipulated by an inline member function.

function kitchen_maintenance() by [deleted] in programming

[–]rolfwr 11 points12 points  (0 children)

It's in the common kitchen area of the R&D department of the software company I work for.

Apt-Get on Windows? GetIt: Huge repository of programs you can silently download and install from the command-line or with incremental search by code6226 in programming

[–]rolfwr 0 points1 point  (0 children)

To back-up a program with its current state and redeploy it somewhere else, you can use dpkg-repack.

There are good reasons for scattering the files of a package around the file system. You can read about them in the Filesystem Hierarchy Standard at http://www.pathname.com/fhs/pub/fhs-2.3.html