News for hackers. Stuff that matters.

NCG_Mike

Re:Fully documented source code for Elite on the BBC Micro on Monday September 28, 2020 @04:58AM (#24614533)
Right On Commander!
Re:Fully documented source code for Elite on the BBC Micro on Monday September 28, 2020 @04:55AM (#24614515)
I assume they had a scaled up integer sin and tan tables and used matrices for scale, rotation and projection?

I do remember seeing this in 68K.

Re:Unit Testing Is Overrated on Thursday July 09, 2020 @08:04AM (#23779259)
I'd suggest that someone who thinks that UTs are over-rated are over-rating their ability. I'd also suggest that those people are the exact people that should have extra testing done on their code.
Re:UK virus-tracing app switches to Google-Apple model on Thursday June 18, 2020 @09:17AM (#23562781)
Good. The NHS has a terrible history of software development.
Re:Discret 11, the French TV encryption of the 80s on Monday June 08, 2020 @08:17AM (#23455848)
I had it too ;-)
Re:Make LLVM Fast Again on Monday May 11, 2020 @10:27AM (#23142486)
A couple of things a C++ developer can do is to put template instantiation code into a .cpp file, where possible.

"#pragma once" in the header files helps as does using a pre-compiled header file.

Obviously, removing header files that aren't needed makes a difference too.

Re:Fix Boyer-Moore searcher with the Rytter correction on Friday April 17, 2020 @06:50AM (#22897883)
I remember Dr Dobbs, way back when, having an article on the search algorithm. I think they had C code for it.

I did a version in 68K on the Mac (MPW Shell days) for a SGML editor I was working on.

Re:Give Yourself More Playtime (2015) on Monday March 30, 2020 @05:21AM (#22726385)
If you hit shift+run stop at the end of the command it'd load and run.
Re:Your First THINK C Program on Friday March 27, 2020 @10:15AM (#22702981)
Wow. Going back a long time. I was in the MPW Shell camp but did use ThinkC With Objects and it was so much faster than the C compiler in MPW.
Re:Why Life on Other Planets Will Resemble Ours on Tuesday January 28, 2020 @10:47AM (#22170417)
Requires some kind of sign-in to read the article. Not going to happen.
Re:Model-View-Controller in iOS: A Blueprint for Better Apps on Tuesday January 28, 2020 @10:46AM (#22170404)
The way I built MacOS applications in Obj-C was to use a dictionary with key/value pairs held inside either a NSDocument or a controller of some kind. I'd bind the views to the model, via the controller. No sub-classes of views.

It also had the benefit of been able to add undo/redo with a few lines of code. This even would undo radio button clicks as those controls were also bound to the model.

Saving the model was just a case of saving the dictionary or converting the dictionary in save and load from some other format, say ICC Color Profiles.

I'm not surprised to read that less experienced developers bung all their controller and model code in a sub-class of some view. It was a common thing to see in the MFC or PowerPlant days.

I know them as "roger beeps" from CB radio terminology.
Re:Why So Many Londoners Live in 'Two-Up, Two-Down' Housing on Tuesday January 14, 2020 @06:49AM (#22043912)
Smog pollution was a big issue back then. You'll have seen the old movies where London is "foggy".
Re:A simple C++11 thread pool implementation on Thursday January 09, 2020 @10:25AM (#22001910)
Not sure but there may be two bugs in the code. The use of notify on the condition outside of the mutex lock.

I know this would cause problems with boost, not sure about std::.

Nice. Reminds me of printing related software that'd optimise the use of film by sorting the postscript output of a renderer to make best use of the film.
You might look at the Linux version of CFLite, the Apple reference counted C library. Has other things than just strings which would be useful to a C programmer.

https://github.com/fjolnir/CoreFoundation-Lite-Linux

Time is an illusion. Tea-Time doubly so.
Re:A History of Pizza on Wednesday October 16, 2019 @05:30AM (#21268555)
There's a kind of pizza that I've had at a Turkish restaurant that comes without tomatoes. Really nice.

I'd assume a common origin with the Italian variety via the Romans (ancient).

Re:New Mac Pro Tech Specs on Friday September 27, 2019 @04:25AM (#21089667)
HP Z800 with 96GB of RAM, 2TB of RAID 0 rust and a 1TB SSD. C++ dev using Fedora 29.
Objective-C with AppKit on MacOS 10.0. Even Apple had problems finding people and they'd bought NeXT (where my experience was from).
Re:Bulk Data Structures C++ on Wednesday August 21, 2019 @04:49AM (#20755530)
It seems clear from the article the developer isn't that clued up.
As someone who worked in the US with a H1-B, in my case it was because you'd not find someone with my particular skill at that point in time. I was also paid more than the employees at the company I was contracted to work at - because of my particular skill and I'd taken a pay cut to move to the US.

This is what the H1-B is/was supposed to be like. It does seem that it has been abused.