Better HN
topnewbestaskshowjobs
Log inSign up

aninteger

915 karma · joined Jun 9, 2011 (15y ago) · 403 submissions

Submissions

151.

Amiga Java(mikekohn.net ↗)

159 points · by aninteger · 6y ago · 67 comments

comment 6y ago · link · parent

I think what squarefoot is looking for is lightweight (tiny?) C apps that have limited abstraction layers. For example, Gtk+, which is pure C, is no longer considered lightweight. It was with Gtk+ 1.2 because GTK was just a small wrapper around X11 in the 1.x days. That is what AzPainter is. AzPainter basically depends on xlib, xft/freetype, and some image libraries (libpng, libjpeg).

Modern C apps with a GUI typically build on GTK but that toolkit has become massive. Modern GTK3 apps are built on top of dbus, pango, atk, cairo. This is not necessarily a bad thing though and libraries like ATK provide accessibility which is important. At the time GTK+ was created the competing toolkit at the time, under Unix, was Motif and it had the nickname "bloatif". Now we've reached a point where GTK3 is much much larger and "bloated" than a 2019 Motif application.

If we include C++ the Qt and WxWidgets toolkits are also massive. FLTK is still a lightweight option though.

comment 6y ago · link · parent

100% agree with you. I really think adding a source file to your build tool of choice (Make, CMake, Visual Studio project) is a basic fundamental skill that a C or C++ developer should know.

comment 7y ago · link · parent

There are some sites that don't work well in Firefox, like Cisco's WebEx. The web client will disconnect and reconnect causing everyone to constantly hear a disconnect and entry beep when your audio cuts out. On Chromium there is no problem on the same machine. This is on Xubuntu Linux.

comment 7y ago · link · parent

I like the user interface. It was built on xclass (a FVWM95 like UI toolkit). They ported it to Windows by emulating the xlib portions using gdk 1.3.

comment 7y ago · link · parent

> it's like FVWM95, only from this century.

I wonder how you'd feel about Trinity Desktop Environment? I feel like Trinity and Lxqt are in the same space when it comes to system requirements.

comment 7y ago · link · parent

OpenBSD does (2 releases every year, approximately 6 months apart).

158.

Postpone the Switch to Wayland in Debian Buster(salsa.debian.org ↗)

3 points · by aninteger · 7y ago · discuss

comment 7y ago · link · parent

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);

comment 7y ago · link · parent

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).

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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?

comment 7y ago · link · parent

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.

comment 8y ago · link · parent

Thankfully Netscape decided to release the source code for "Mozilla" before this acquisition took place.

comment 8y ago · link · parent

And cockroaches.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

How to write using X in both languages:

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

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

comment 8y ago · link · parent

Replace LA with Seattle.

comment 8y ago · link · parent

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.

172.

Playstation2 java(mikekohn.net ↗)

3 points · by aninteger · 8y ago · 1 comment

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

Yep, Dwayne "The Rock" Johnson is also obese based on BMI numbers alone.

comment 8y ago · link · parent

This is very sad. The last thing someone wants is a tired, exhausted driver driving them around.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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).

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

Beautiful code is simple maintainable code. In C this is a simple as:

#include <stdio.h>

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

1
567
14