1,423 karma · joined August 28, 2019
Currently “on sabbatical” learning more about operating systems and native code.
... especially when the rocket EXPLODED. This "the government needs to get out of the way of our billionaire spaceship overlords" mentality would be insane even if the launch was an unqualified success.
> Update: Thanks to gus_massa and wiml @ HackerNews for pointing out I had used associative instead of commutative.... This means that floating point arithmetic is noncommutative [i]n that A + B != B + A.
Floating-point arithmetic is commutative, but not associative. So for floating-point numbers,
A + B = B + A always, but
A + (B + C) != (A + B) + C in many cases.
The problem comes about from significant digits and rounding - A + B might round up to 1, but B + C might round down to zero, etc. The point remains that the order in which you do things actually does matter in floating-point arithmetic, but it's the order you compute the "inner parentheses," not the actual order of numbers in (e.g.) the FPU registers.
Aren’t you just proving the author’s point here? Even your fairly simple heuristic that works in most cases is easy to screw up due to a typo / brain fart, and it’s quite likely that even experienced developers will write code that memcheck/valgrind complains about (which is why the tools exist!)
So writing memory-safe code in C/C++ is brittle and not easy to do consistently without additional tools and checks. The author’s point wasn’t that it’s impossible or conceptually deep, but that it’s tricky and painstaking work which is easy to mess up.
a) “Why do we use DRAM instead of SRAM?” is a perfectly valid question from a programmer that is worth a paragraph of detail, including the capacitor discharge curves. It is not like this is a major focus of the article! It’s just a small detail in the overview of the hardware. Seems very strange to be so upset by this.
b) If you ever write software for something that isn’t a desktop or server (eg a printer, a robot, some new shiny tech) then the hardware details of RAM are absolutely relevant and can’t be abstracted away by a nice alloc API. I can understand not wanting to focus on areas like this (devices are not my cup of tea) but I can’t understand deciding it’s ipso facto irrelevant because you’re a programmer.
As this is the introduction, it might be helpful for some readers to read the rest of the document: https://people.freebsd.org/~lstewart/articles/cpumemory.pdf Of course, it’s a 114 page PDF so the first ~20 pages in HTML might be easier to actually finish reading.
But this is a fantastic resource and something I really need to take the time to finish (I myself never get past the first 20 pages.....)
This is just a blatant misunderstanding of what Racket on Chez is trying to do, and a very limited understanding of what “optimization” means for something as complex as a compiler/interpreter. The point of the Chez backend is to improve maintainability and portability, not to increase speed [1]. Racket used to have a custom Scheme interpreter with a lot of custom C that was difficult to work with, so instead a lot of that code was ported to Chez - easier for everyone, especially Racket devs, even if it might take a while to smooth out some of the (very modest) performance hits.
And since you’re obviously totally ignorant as to why Racket decided to do all this work, it makes it hard to take your rant seriously.
[1] https://www.cs.utah.edu/plt/publications/icfp19-fddkmstz.pdf
I myself didn’t know anything about this person so I poked through their blog a bit. They are clearly marketing their education business (and I am not their target audience) but also seem to know what they’re talking about. More to the point: their material appears to be sincerely helpful to intermediate (and even advanced) NET devs. This relatively short post on unsafe array access in C#[1] although not especially deep, does at least dive into the runtime / IL internals enough to give a clear picture of what the unsafe code is actually doing.
I haven’t watched the video either but they are creating good-faith tutorials, they are obviously capable of understanding the .NET GC, and there’s no reason to suspect they would change type and BS their way through a new video series.
[1] https://tooslowexception.com/getting-rid-of-array-bound-chec...
I will say that my preferred solution to the problem of Facebook (nationalization and open criminal investigations into its leadership) actually raises serious constitutional issues. The Parler case really really doesn’t - it doesn’t even raise good philosophical issues about free speech, just a bunch of dumb arguments.
Let’s use an old-fashioned analogy. An ISP is like a post office, and people’s letters should not be meddled with (outside of violent threats or pursuant to a legal criminal investigation). In particular, ISPs are relevant to most individuals and ISPs (should) have respect for individual rights. But large platforms like AWS are more like large-scale mail printing and distribution, and is only really relevant to commercial enterprises. Such companies might choose to work with Sears to distribute catalogs, but decide not to work with Scientologists to distribute propaganda. They can be judicious in their choice of business partners without violating any individual rights - nobody has a right to any commercial partner they want. And in this case, AWS’s freedom of association rights (deciding not to do business with groups that aren’t federally protected, like the racist trolls who run Parler) are much more relevant here.
AWS refusing to do business with Parler is not the same thing as Comcast refusing to allow access to things written by Parler’s users. It is more like Amazon’s Kindle Direct Publishing refusing to put racist screeds in an ebook.
It seems that C# Interactive has gotten better (and since leaving that job I have switched to 100% F# for .NET stuff). But a more useful application is using Powershell to bundle a .NET class library into a flexible, low-weight, modular command line application for internal use. For instance, a C# library which does serious analytics on large data, and then a Powershell script that deals with easier annoyances like AWS authentication or FTP access, argument parsing, and so on. Obviously a real .exe is a better long-term solution but I found Powershell worked really well for rapidly sharing compiled .NET code into a tool that data scientists on my team could use.
Now, I am not sure if memory bugs are "worse for security" than type bugs or null reference bugs (in the wild or in theory). Certainly many of the more notorious major exploits in recent years come down to memory errors. But of course, the major infrastructural software affected in bugs like Heartbleed wouldn't be written in a dynamic interpreted language anyway. More generally, a language being safe against C-style memory bugs does not mean a (reasonably well done) implementation is actually safer than a (reasonably well done) implementation in C. That statement might be true for C#/Java/Haskell, but not for JavaScript/bash/Python/etc.
It just seemed odd to not mention typing discipline at all. Presumably the author has experience with frustrating type errors in Python or "object of type None does not have method xxx" - these can be really bad for security in a Flask app unless you have careful exception handling ! And, unlike Rust, Python offers very little to actually help you with the exception handling.
> We found that job demands could be the most important factor that can develop work addiction risk. So this factor should be controlled or should be investigated by the organization's manager, for example, HR staff, psychologists.
My last job could be described as “workaholism” but what was really going on was
1) my manager had a toxic relationship with their manager and were unfairly overworked
2) they passed this attitude on to their subordinates
3) the really ugly part: although my manager had high expectations, they were not very good about actual enforcement, so work from “underperforming” (< 45 hr/week) teammates was dumped onto “adequate” (> 60 hrs) employees, without any planning or accountability - or, crucially, any flexibility. I had never had a boss who took less responsibility for their worker’s projects.
Speaking for myself: I have a serious mental illness and not a lot of economic stability. So although I am a decent programmer (when I am well) I am very susceptible to stress-related illnesses. In November and December I ended up losing about 20% of my body weight, entirely due to work stress, and had to resign. I really tried my best to get my boss to listen and didn’t have the heart or strength to drag them into HR :(
Just an ugly situation when managers don’t take responsibility for the health of their employees. Especially when the issue is their own stress and inexperience versus greed.
> I found myself often just ignoring the actual gameplay and parkouring around the beautiful city.
That’s kind of what I mean - and everyone I’ve watched play Cyberpunk has done the same thing, ignore the quests and abuse the quirky movement system to explore places they aren’t “allowed” by the developers to visit, and admire the pretty views. It does look fun and relaxing - I often dick around like that in open world games.
But pretty views and nice models are only part of a good open world. In GTA the act of messing around in the city is real emergent gameplay explicitly supported by the game’s mechanics, and not just an improvised Mirror’s Edge. In GTA you can have an exciting chase across the city, and your actions have real (if transient) consequences for the surrounding cars and pedestrians. GTA’s cities do feel like real cities. The city in Cyberpunk seems like more of a set piece - impressively detailed and engineered, but without a lot of action.
I also find the whole idea that there was collusion to be a claim without evidence or plausibility: Parler was correctly associated with the Capitol Hill riot and had been deliberately stoking far-right aggression for years - it was Parler’s business model. It makes far more sense to me that Big Tech leadership all decided to ban Parler independently because they read the news last week.
[1] https://mobile.twitter.com/MaxKennerly/status/13491723205947...
It has not been regarded as a flawed masterpiece, but something more like 2001's Anachronox - a solid game with strong elements, but in many ways mediocre and hardly justifying a tortured development cycle and myriad bugs.
From what I understand it’s a fairly anodyne action-RPG, with routine quests, an underwhelming plot, and not too many interesting choices for character development - nothing bad, but nothing great. It doesn’t have the script of The Witcher III, the humor and satire isn’t as clever as Watch Dogs, it doesn’t break new action-RPG gameplay ground like Fallout 4, and as an open world city it’s a shallow clone of a GTA game. And it doesn’t contribute anything particularly unique itself - outside of all the hype, the consensus seems to be that it’s a fine choice if you’re looking for a solid action-RPG, but not essential. Which would be fine if the game were finished and appropriately hyped! But neither were the case.
People would be more forgiving of the bugs and even the unscrupulous marketing if the game was legitimately extraordinary and unlike anything else out there - the viral buggy footage would be offset by viral stories and videos of cool things in the game itself. But those cool things just aren’t there in Cyberpunk - it’s a B+ game, and doesn’t seem to have much to offer compared to its competitors.
b) A person who sneers at the idea of a moral argument as being not “objective” is maybe a teenager, but more likely a profoundly creepy adult. Either way it’s difficult to take the criticism seriously.
How ridiculous. Individuals need water, heat, and electricity to survive in the 21st century. I would argue they also need a cell phone and internet access.
Individuals do not need cloud computing services. For-profit companies want AWS because they can use it to make money. This is not a good basis to form a utility.
As an entrepreneur I would refuse to do business with anyone who had a Parler account and I am honestly a bit bothered by this authoritarian suggestion that the state should force me to do business with racists.
This false equivalence is bullshit and you are perfectly aware that it’s bullshit.
a) Parler is hardly being “kicked off the entire internet.” They are being severely ostracized and being denied service by major online companies. This would happen to me in my city’s various bars if I developed a reputation as a violent drunk - it is not a violation of any fundamental liberties. Regardless, the idea that Parler can’t exist without AWS is ridiculous - what is true is that maybe you shouldn’t use AWS to run a business that makes money hosting Nazi propaganda! In general people should be aware of the risks of offsourcing to the cloud... especially when your business model is odious and immoral.
b) Parler is not some innocent social media service that got overrun with Nazis. While its leadership is secretive, it is heavily financed and owned by major conservative activists, and a great deal of its marketing is towards disaffected far-right Twitter users.
c) Again and again and again: nobody has ever complained about YouTube banning pornography. It is not because we’re moral scolds who want to make porn illegal - it is because pornography is a shady business with shady people and YouTube has every right to not want to get involved with it. It would be a violation of the first amendment to force YouTube to host porn. Likewise it would be unconstitutional to force Twitter to restore access to @realDonaldTrump. The exact same applies to AWS or the Google App store and hosting Nazis on Parler.
This grotesque perversion of “free speech” being used to shield people from the consequences of hate speech is one of the more worrying ideological developments in recent years.
No, but like Ford or Mercedes or any other company like then, I believe they would sell this tech to humanitarian aid organizations that might use it.
> I want a strong US to counter the fact that the number one economy in the world is a fascist state.
If you don’t want people to say you’re motivated by nativist greed, maybe try having ideas that aren’t nakedly greedy and nativist? At the very least your nihilistic zero-sum America-first attitude is morally indistinguishable from Trumpism, even if in your head it sounds more noble and strategic.
First of all, China has the largest population in the world. They should be the biggest economy in the world, regardless of how evil their government is.
Second of all, if you were truly motivated by a noble desire to stop global fascism, you should be glad that South Korea has this technology instead of the US! The point should be that democratic countries counter China’s power, not that it should be US v. China. In particular, not only is South Korea more directly threatened by Chinese authoritarianism, but their government is far more stable and democratic than the US. The US has only been a democracy since 1965 and, unlike South Korea, our democracy is rapidly decaying.
But it seems that your nativism is leading you to greedily assert the US should be the most powerful country in the world because something something China fascists, despite the fact that we just saw an attempted fascist takeover of Congress by US citizens. It’s deeply hypocritical and indefensible.
DARPA gave up on Boston Dynamics in 2015 - BigDog and it’s like were just too noisy and finicky for use in a combat situation. I believe all the BD robots they purchased are in storage. And it’s not like Boston Dynamics was ever an extension of DARPA. The DARPA collaboration (along with the rise of YouTube!) made Boston Dynamics famous around 2007-2008, but the company has been around since the 90s and always had other projects and clients.
In general, robotics technology does not belong to the US, and as Boston Dynamics’s technology has applications in medicine, manufacturing, and humanitarian aid, this nativist greed is particularly inappropriate.
a) Slack has 5x as many employees, global market share, consumer ubiquity, etc. It’s simply a bigger entity (in the same way that Home Depot is a more ‘boring’ business than slack but 15x larger in valuation)
b) Boston Dynamics is in many ways a research lab rather than a for-profit company. In research and the arts, things might be nominally inexpensive but their real value is priceless.
It is worth noting that “state-sanctioned” violence does not always mean legally-sanctioned violence, since state actions can easily be criminal, or at least lawless.
- The Capitol Hill mob was illegal violence, albeit state-sanctioned (by endorsement of the president)
- Arresting the president (either under Congressional authority or the 25th amendment) would be legal state-sanctioned violence
- Although nominal Chinese law is somewhat authoritarian with regard to ethnic minorities and Muslims, the reason the Xi regime is so desperate to cover up and propagandize the concentration camps is that they are illegal under Chinese and international law
- an illegal mob ransacking Congress in an attempt to overthrow an election, and
- a constitutional arrest of a criminal president (e.g. by the House Sergeant-at-Arms, or by the FBI under Mike Pence’s and the Cabinet’s order via the 25th Amendment)
should not need an explanation.
But many security bugs in C or C++ come down to sloppy types, sloppy pointers, or sloppy concurrency, all of which are almost impossible to do in Haskell. Haskell is not a replacement for C or C++ but its ideas are (and should be) influencing systems programmers.
I don’t actually like Haskell. But there is a reason why major organizations are considering Rust over C and C++: those languages are simply not sufficient for writing secure and robust software in the 21st century, and Rust has taken many of the “best parts” of Haskell to improve systems programming.