5,796 karma · joined Jan 4, 2009 (17y ago) · 1,153 submissions
comment 1d ago · link · parent
E.g. in Java a char is 16 bit while strings are encoded as 8 bit or 16 bit. (If the string only contains Latin1 chars, it will use 8 bit encoding to save memory).
The char type should be what you use while looking at a single decoded character (e.g. when parsing text files), not how you encode it in a string.
comment 2d ago · link · parent
So char always means "byte" and never a real character. I don't think many C programs will work well if char is a 32 bit type so it supports full unicode.
int8_t came way too late and has a way too long name. It should be i8 or int8. There is a problem when C is more verbose than Java. Also: why did it take so long to get a boolean type and fix the "bools are ints" design mistake.
Lack of standard libraries and module system is just another layer of not wanting to standardize things.
comment 6d ago · link · parent
The total market demand of harddrives (and RAM) is higher than supply. So the companies do not need to create artificial shortages and they do not need to coordinate prices. Everybody can completely independently increase prices because they will still sell all their stock no matter that their prices are higher than the competition.
comment 1w ago · link · parent
It only links to a test page.
The test page has an <img> which use the x-xbitmap format.
This is what an x-xbitmap looks like (it really is a text format):
#define not_width 9
#define not_height 5
static char not_bits[] = {
0xff,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xfe};
I think it would be perfectly fine for Chrome to remove all support for such an image format.And from this the poster concludes "bug report bankruptcy".
comment 2w ago · link · parent
Do they lose any significant number of customers? Do anybody in leadership get fired?
Do reading the twitter status updates give you the impression of an organization that takes responsibility seriously?
Or do it sound more like an organization that is optimized for evaporating responsibility?
I think this will change nothing.
comment 3w ago · link · parent
That would require them to actually have studied that field in university in a masters degree (or PhD) like researchers have.
Very few journalists have. Some journalists are good, many are talking heads.
comment 1mo ago · link · parent
Don't they even test script changes on a staging server? How could there be such a script error in production that was not caught in testing/staging?
This sounds very like a fundamental organization error, not an innocent whoopsie. It should lead to a permanent ban of the organization.
comment 1mo ago · link · parent
They are only simple when you have no restrictions on which dates that can be selected.
But a date picker for a hotel, airplane travel, restaurant, ... might have to show some days as disabled or some days that are "cheap offer" dates.
To this add anything that needs to select an interval, like an airplane return ticket.
comment 1mo ago · link · parent
Denmark had peak coal early (2003) due to early investments in wind power. Coal is now practically gone.
We might see China get the same shift in electricity source as Denmark had over the past 20 years, just much faster.
comment 1mo ago · link · parent
The article is written like it assumes the Nokia HQ was next door to Apple/Google.
There is another type of insider trading: If an engineer had stayed at Nokia but bought a lot of shares in Apple after Apple launched the iPhone, would that still be considered insider trading when the engineer did not have any non-public information about Apple, only in which way the general market was moving?
A lot of people laughed at smart phones in 2007-2010, the market majority did not value them and did not predict Apple's stock would grow.
comment 1mo ago · link · parent
I cannot recommend this enough, including writing down almost every day about symptoms and progress. I didn't have cancer, something else, but it was very valuable to be able to go back and see exactly how long time a symptom has been present and when it disappeared.
Doctors also seem to react well to being able to be precise in descriptions of what happened when.
comment 2mo ago · link · parent
At one point the US had 17 small bases in Greenland. Almost all have been abandoned by the USA on its own initiative.
Look at this map: https://www.researchgate.net/figure/Former-US-air-bases-in-G...
Today there is only the small Thule/Pituffik base.
The US has closed the bases because they make no sense with modern military and satellites.
comment 3mo ago · link · parent
Britain is often suffering high prices, likely due to lack of capacity in connections with the mainland EU.
https://app.electricitymaps.com/map/zone/DK-DK2/live/fifteen...
comment 3mo ago · link · parent
https://www.lifewire.com/iphone-notification-history-1189516...
comment 3mo ago · link · parent
It is missing the equivalent of the "history" in e.g. browsers and YouTube.
If a user dismisses an alertbox on desktop, why isn't there an history menu item that shows the previous 100 alert messages?
comment 3mo ago · link · parent
For some multi-country companies it makes sense to have all admin pages in English no matter the underlying OS language. Imagine sending a screenshot where the OS date format is different from what everybody else expects from an English page.
comment 4mo ago · link · parent
It also utilizes the space extremely inefficiently. Single level single family houses everywhere and the rest is parking space. The few parks are difficult to access by kids arriving by foot/bike.
This is what results in the high rent: Can't grow supply and don't use existing land efficiently.
Density: LA = 8,210/sq mi, Lisbon = 17,040/sq mi, Paris = 10,100/sq mi, Amsterdam = 13,670/sq mi, Copenhagen = 19,195/sq mi. (from wikipedia)
Look at Google Street maps: LA is a hellscape of concrete and asfalt. Lisbon and Amsterdam are much nicer and greener and they stil have higer density.
comment 4mo ago · link · parent
If 64 bit isn't enough, then very quickly 128 is also not enough.
If precision is important then you will very often want systems that represent every number as an interval [a, b] meaning that the true value is between those 2 numbers. This makes you able to detect loss of precision due to e.g. d = a / (b - c) where b-c can result in a number close to zero which makes uncertainty grow. If you use this formula iteratively then precision is lost completely no matter how many bits there are in your floating point variables.
comment 4mo ago · link · parent
This is systematic for that user. Either the user needs to improve or let go.
The organization needs to learn that good commit messages are a requirement for anything to do with crypto and payment systems.
comment 4mo ago · link · parent
It is not a top-down decision, production and supply as other armies use for their weapons logistics.