HNHacker News
TopNewBestAskShowJobs

aninteger

915 karma · joined June 9, 2011

submissionscomments
aninteger··on Why the C++ standard ships every three years
OpenBSD does (2 releases every year, approximately 6 months apart).
aninteger··on Windows Implementation Libraries: type-safe C++ interfaces for Windows patterns
It's not too hard. Just write a simple wrapper around FormatMessage:

  DWORD errorCode = GetLastError();

  DWORD dwFlg = FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |    FORMAT_MESSAGE_IGNORE_INSERTS;
  LPTSTR lpMsgBuf = NULL;
  FormatMessageA(dwFlg, 0, errorCode, 0, (LPTSTR)&lpMsgBuf, 0, NULL);

  // Error message is in lpMsgBuf so make sure to free afterwards.
  LocalFree(lpMsgBuf);
aninteger··on Modern C++ for C Programmers
CMake is the modern build tool everyone seems to love, but regular old GNU/BSD Makefile is fine too. As for a package manager it seems like people are converging on Conan or vcpkg (I have no real metrics, just basing that statement on the posts I see on Reddit over at /r/cpp).
aninteger··on Nvidia's $99 Jetson Nano Is an AI Computer for DIY Enthusiasts
It's Nvidia, so you have to decide whether you want to give ANY money at all to a company that ships binary blobs or not (whether or not this individual product uses them). I'm sure there are product teams at Nvidia that ship "open" products but unfortunately there doesn't seem to be a way to support the good parts of a corporation while neglecting the parts that ship closed binary blobs.
aninteger··on California's constitution makes affordable housing hard to build
The biggest problem with public housing and low income housing is that they become unsafe (at least in Los Angeles). Many of these places are not safe enough to walk around at night. Is it really any surprise that people don't want areas of high crime in their neighborhoods?
aninteger··on Al Lowe reveals his Sierra source code collection
I am interested but not enough to pay over $1000. I actually hope that some (well all) of this code makes it to the computer history museum.
aninteger··on AOL acquires Netscape in $4.2B deal (1998)
Thankfully Netscape decided to release the source code for "Mozilla" before this acquisition took place.
aninteger··on Alarming study shows massive insect loss
And cockroaches.
aninteger··on Ask HN: What discontinued company/product do you wish was still around?
A diverse CPU collection.

For a while we had some good alternatives to Intel x86. Alpha, Sparc, Motorola 68k, PowerPC, MIPS. Now we just have 32 and 64 variants of x86 and ARM. I guess powerpc is technically not dead yet (which is good!) although the new 64 bit powerpc is little endian I think...

As for companies, Sun Microsystems. I'd like to think that Sun, if they were still around, would be handling Java better than Oracle is today. I'd like to believe that they'd operate similar to Microsoft on the open source front.

aninteger··on U.S. Robocall Data
It's coming to SMS and probably other "chat systems" too. It's quite easy to build a robocall system on top of Twilio now and they offer much more than just calls.
aninteger··on The iPhone XS and XS Max Review: Unveiling the Silicon Secrets
Could it also be that a lot more of the applications are written and compiled to the native machine versus the overhead of a VM (even if that is JIT). I'd guess Minecraft pocket edition would perform similar on both systems.
aninteger··on How to write X in both Python 3 and JavaScript
How to write using X in both languages:

Python: https://github.com/python-xlib/python-xlib

Node.js: https://github.com/sidorares/node-x11

aninteger··on Why startups are leaving Silicon Valley
Replace LA with Seattle.
aninteger··on A Nerd’s Way to Walk Up the Stairs (2011)
Bonus points for doing this while going down. Taking public transportation as part of my daily commute involves a lot of stair climbing and descending. I always find it fascinating to watch the people who rush from bus to train platform and watch them descend 2 stairs at a time (basically always doing long long long) the whole way down. I've never been brave enough to try this method of descending though.
aninteger··on Slack Is Buying HipChat from Atlassian
Slack might not have an on-prem option now but if they are buying HipChat they will have one soon. Yes it is possible they will remove it but they may go the other way and make some parts of slack available to on-prem as the two products merge.
aninteger··on Losing 100 pounds in 276 days
Yep, Dwayne "The Rock" Johnson is also obese based on BMI numbers alone.
aninteger··on How the gig economy is making life harder for North American workers
This is very sad. The last thing someone wants is a tired, exhausted driver driving them around.
aninteger··on Web Framework Benchmarks
This is probably due to the fact that PostgreSQL (libpq) has an "async" interfere built in and MySQL/MariaDB don't. These benchmarks are running very basic queries that perform well on either MySQL or PostgreSQL.
aninteger··on Web Framework Benchmarks
Yes, exactly. I'd love to see some examples of a CRUD based API built on top of h2o. At least this appears to be possible with one of the higher performers (cppcms).
aninteger··on Toshiba to Close the Book on Its Laptop Unit
They were ok laptops. They had a lot of issues with ACPI prompting at least this patch:

https://bugzilla.kernel.org/show_bug.cgi?id=14679

It's sad because Toshiba was credited on the ACPI specification documents so how they messed things up so bad I don't know.

To this day, the Toshiba I own currently only works with Windows 7 and Linux. No support for any of the BSDs.

aninteger··on The Most Beautiful Piece of Code That Prints 42
Beautiful code is simple maintainable code. In C this is a simple as:

#include <stdio.h>

int main(void) { puts("42"); return 0; }

aninteger··on Message-Oriented Programming (2017)
Isn't this just the way Win32 programs were written? Each window could have a routine that received messages like WM_PAINT, WM_SIZE, etc.
aninteger··on In a first, U.S. blames Russia for cyber attacks on energy grid
If I leave my door unlocked can I really blame <bad person> for opening my door and robbing me? Why dont I invest in door locks? The US should really look into a more security focused infrastructure. This year the bad guy is Russia, but last year it was China and next year maybe it will be Iranian hackers. I understand that security is constant game of cat and mouse but when I see and hear of companies running Wimdows XP in 2018... it's like we're not even trying. Might as well leave the doors unlocked.
aninteger··on The IRS’s Effort to Convert Its Assembly Codebase to Java
$103k-$134k sounds very market rate to me... Maybe not for the San Francisco Bay Area but for areas outside of that it seems fine.
aninteger··on Very old, very sophisticated tools found in India
Or how about Turbo C++? It seems there are still technical schools in India that are still teaching using very old (but not sophisticated) tools. It's frustrating too see modern C++ tutorials using 1980/1990s compilers.
aninteger··on Modern Linux in an ancient PC
Great work! I love this. Unfortunately, "Science projects" like this are the first thing you have give up when you're married with children.
aninteger··on AIM will be discontinued today
If you ever get around to making a private OSCAR based server and publish the code somewhere please let us know.
aninteger··on LibHTTP: Open Source HTTP Library in C
Then their FAQ needs to be updated:

To build H2O as a library you will need to install the following dependencies:

libuv version 1.0 or above OpenSSL version 1.0.2 or above

As I understand it, regular h2o doesn't require libuv but libh2o does.

aninteger··on LibHTTP: Open Source HTTP Library in C
h20 is nice, but I believe it requires libuv. libuv is a massive stack with LOTS of abstractions on top of abstractions that are sorta atypical of C libraries. If your code crashes because some assert in libuv fired, good luck navigating through the "typedef city" that libuv is. I wrote a little server built on top of libuv but I could never really get it working right on Windows (which is a platform that libuv supports fairly well I think). In the end I ended up abandoning libuv, and all the that abstraction, and just requiring Linux or BSD by targeting epoll/kqueue directly.
aninteger··on Who’s Sitting Next to You on the Subway? An R Train in September
Did they do this on the weekend? I ride public transit every day of the work week. I see lots of the same people. I don't understand how the answer to the question of "Where are you going?" is not "work" more often.
← PreviousPage 6 of 13Next →