Better HN
topnewbestaskshowjobs
Log inSign up

the_arcadian

19 karma · joined Sep 19, 2022 (4y ago) · 32 submissions

Submissions

comment 3y ago · link · parent

"What I am proposing is simple - the End key should do what it says on the label, which is take you to the end of the web page. So for infinitely scrolling web pages, which have no end, they should just continue to load data until there is nothing left to load, or until you’ve exhausted every scrap of RAM and hard drive space your system can find." (excerpt)

2.

In an infinite scroll world, the End key should be king(tristanyates.com ↗)

4 points · by the_arcadian · 3y ago · 2 comments

comment 3y ago · link · parent

"But after it was assembled, I found a defect - a faint, flickering green band across my monitor. It sounds like a problem with the monitor or the cable, but it wasn’t - it disappeared when I installed an inexpensive video card, bypassing the motherboard’s HDMI port. For a server, the defect made absolutely no difference whatsoever, since the system wasn’t even going to be plugged into a monitor. But it could be a sign of a failing motherboard." (excerpt)

4.

After Action Project Greensleeves(tristanyates.com ↗)

1 points · by the_arcadian · 3y ago · 1 comment

comment 3y ago · link · parent

They say it is always easier to con intelligent people, because they don't think they are capable of being fooled.

comment 3y ago · link · parent

> Ideally, you don’t want to make a self-referential struct in Rust. Instead you should leverage other types to accomplish the same thing; for example Rc<T> can be used for things like linked-lists or trees. Also, have a look for libraries that might do this work for you, as these are very easy to do wrong.

LOL, sure borrow-checked reference counted pointers that can't equal null to mark the beginning or end of a chain are exactly what I am looking for when I want to build a linked list or tree. Why are you like this, Rust?

comment 3y ago · link · parent

The reason people use systems programming languages is because they need to efficiently and effectively manage and manipulate memory. That's why C was created in the first place - to write the 100,000+ lines of code that would become Unix Version 4 in 1973. (Not bad for a two year old language.)

Which means that when you present me with a systems programming language that enforces an ownership concept that makes it much more difficult to write allocators or even doubly linked data structures, and then use that language's existence to justify adding the same restrictions into a version of C, "who asked for this?" might well be the least offensive response I can muster.

comment 3y ago · link · parent

Right, I understand that big corporations are pushing a new systems programming language that they say saves programmers from their own mistakes. My question was whether any programmers actually asked for it, and if so, which ones?

> We use languages that impose other “arbitrary” constraints on us

> The ownership model is a similar concept [to type checking]

Except we didn't. K&R rejected Pascal for their work on Unix precisely because it was too strongly typed and didn't provide sufficient escape hatches. Arrays were typed by length, there was no pointer arithmetic, there was little or no typecasting or coercion, no generic pointer types, no null pointers, etc.

All these restrictions that were in place to create a safer language made Pascal completely unsuited to writing allocators, buffered IO, and other OS internals. So instead, they ditched Pascal and created C and had Unix up in running in just a couple of years. Maybe there's a lesson there.

comment 3y ago · link · parent

> So, what does the current ferment about Rust tell us? That the industry is ready to accept that programmers take a more disciplined approach by embracing strong data typing enhanced with program annotations.

I have a question. Who asked for this? Like who exactly raised their hand and said yes, I want a systems programming language that won't let me compile syntactically and semantically correct programs because they don't follow an arbitrary ownership model?

comment 3y ago · link · parent

I heard that systems programming used to be dangerous and scary but then Rust was invented so now its okay.

comment 3y ago · link · parent

Confusion? No it's just flat out obfuscation.

comment 3y ago · link · parent

This sounds like a /r/politics headline.

comment 3y ago · link · parent

While I generally agree that when someone does something violent, you blame them rather than the words on the page or the screen that they read, Reddit is an awful example here since its TOS is so perverse that it protects the most extreme and dishonest views on one side and then stifles any discussion and debate on the other.

So for example, if I posted "100 black Americans are killed every day by white Americans", which is obviously both misleading and inaccurate, you would be risking your account by engaging in any kind of discussion or debate, or even arguing that you should be allowed to discuss and debate that. That's because you would be violating multiple rules - first, a rule that protects specific races from criticism, second, a rule that disallows even accurate breakdowns of crime by race, and third, a rule that prevents you from discussing and debating aspects of the TOS itself.

Thus, by the rules of Reddit, my statement would stand completely unchallenged. Now realistically I don't think my statement alone would result in a rash of payback crimes, but over time you are giving people a skewed version of the world in which violence can be justified. And sure, one could argue that they're not legally responsible for what people do and that any attempt to hold them responsible is guilt by association, but OTOH I don't think any social media company wants that kind of reputation and press.

comment 3y ago · link · parent

Found this comment when I did a ctrl-F to see who was breaking the first rule of Usenet LOL

comment 3y ago · link · parent

Read up on creatine - it may help you.

comment 4y ago · link · parent

As far as I know, Musk hasn't removed any comments critical of him or his management.

comment 4y ago · link · parent

This is a really important question and one that MBAs miss all the time (speaking as one myself). The value of a tech company isn't in its existing product portfolio and revenue stream, it is in its ability to create and launch new successful revenue-generating products in the future. Personally I do think Google has that history, starting obviously with Gmail, Maps, etc. But nobody can predict whether that will continue or if they'll end up like an IBM or Facebook, largely dependent on their legacy products.

comment 4y ago · link · parent

I'm not sure how this is the lesson you're taking away from twitter when the workers are getting three months severance, unlike your typical service sector worker who can basically be fired by their manager on the spot. The US is a dynamic economy and your compensation is for the most part whatever you can negotiate. At the VP level it's not uncommon to get severance packages of a year or more at $200-300k, and at the C-suite level the numbers can hit millions of dollars.

comment 4y ago · link · parent

There's some willful denial here on HN and in other places that 1) twitter is being punished because it seems its role as supporting free speech rather than policing misinformation, 2) Elon Musk, as founder of Paypal and CEO of Starlink, has more than enough Internet / technical knowledge to run a site like twitter, 3) twitter itself is just not all that complicated and was probably due for an overhaul / rewrite anyway, and 4) investors don't buy companies to run them the exact same way that they were run before, they do it because they see both wasted resources and additional value and opportunity, which means they're always going to lay off some people and hire others.

Ultimately, twitter will be judged by its users, and whether they find value in the site, and whether its financially viable - income meets expenses. I think twitter's free speech & openness virtually guarantees the former, since everyone will be able to find something that they like on the platform and ignore the rest. The latter will be opaque for quite a while, since twitter is now private and, I assume, won't be disclosing its financial data except as required by taxes / regulation.

comment 4y ago · link · parent

The problem is that I've read "If you give a mouse a cookie" to my daughter so many times that I would naturally assume that giving a twinkie to a monkey would result in a bedtime-story length chain of humorous events.

comment 4y ago · link · parent

Media publishers (and I use the term in the broadest sense) knew, going in, that the Internet was designed to distribute and copy information, in many cases completely anonymously. But they embraced the platform and chose that business model because they knew that it would lower their costs dramatically, even once piracy was taken into account, and they've been largely successful.

Also in my experience CEOs really know their businesses, which makes me think they also understand the economics and dynamics of piracy to a greater extent than the rest of us, even pirates. From what observe, I think that they see pirates largely as hobbyists and influencers rather than lost customers or individuals out for economic gain, and are really only concerned with piracy at scale, like in this Z library case.

comment 4y ago · link · parent

Unless your social / situational awareness skills are highly developed and you think you've found another use for your skills in the same firm that they haven't thought of, no I wouldn't even consider this. Even then you would probably have better luck cold calling a competitor.

comment 4y ago · link · parent

This is a great thread. I have had a home server for almost 10 years at this point for files & media, and added a second dedicated dev server this year. They both run FreeBSD and I honestly couldn't imagine my life without them. I recommend to people all the time that they get a home server, even if its just a used NUC, but not too many people do for whatever reason.

My file / media server has roughly 20TB online and has movies, games, books, personal files, etc served with NFS & Samba. I don't use anything fancy like Plex or Jellyfin, just XBMC which works fine. It also runs the usenet stack nzbget, nzbhydra, etc and has a virtual machine running transmission through a VPN. I also have a custom ruby script that transcodes files to x265.

Once you get into the home server biz, the most important thing is to have a great case. Mine is the Fractal Node 804, which IMO is truly awesome - a big cube that holds a microatx board and 8 drives, and its actually pretty affordable. For hardware specs, I started dirt cheap and then upgraded too much, building a 12-core / 64GB setup that sat at 10% CPU utilization most of the time. I've since downgraded to a i5-10600 w/32GB RAM which is more than capable.

This is beyond the scope of the question, so I won't get into details, but I would also encourage any developer to have a dedicated dev server as it helps you to better understand performance and deployment.

comment 4y ago · link · parent

Thanks!

comment 4y ago · link · parent

I understand why any commentary from Torvalds is notable, but when I read this my takeaway isn't that we need ECC everywhere, its that a hardware component failed much sooner than it should have (I would have liked to have known who the manufacturer was) and that his ability to accurately diagnose the failing component was hampered by a shortage of effective diagnostic tools and perhaps his own lack of hardware troubleshooting experience. But maybe I'm missing something here.

comment 4y ago · link · parent

Exactly. It shows up the most in discretionary big ticket purchases. When the market's down you'll buy the same number of bags of doritos as you used to, but you're more reluctant to buy a new car or redo your kitchen.

comment 4y ago · link · parent

This sort of reminds me of the 1994 essay "Why you should not use Tcl" by Richard Stallman. Then, if memory serves me, we all switched to scheme and lived happily ever after.

comment 4y ago · link · parent

> Finally, there’s the mighty inconvenient fact that a large amount of safety-critical software (a well-defined term and domain!) is written in C and C++ with a track record of multiple decades

Well stated.

comment 4y ago · link · parent

Agree 100%. The C++ language and ecosystem shouldn't feel dynamic, given its age and the installed base, and yet it really does. I remember when c++11 came out and all the crazy typedefs I had to type out just disappeared overnight, and I was able to write statements like "using Elem = uint64_t; using Node = MyClass::Node<Elem>;" which were so much more straightforward. Function pointers disappeared too and were replaced by lambdas so I could write my own "each_node" functions and actually have them be really useful.

Then we had concurrency primitives, and now apparently there's a module system in c++20 which should be interesting. C++ clearly has no plans to bow out gracefully or otherwise go quietly into the night, which is fine by me since I still think it's the language which gives me, as a developer, the most freedom and control over the system.

comment 4y ago · link · parent

Meson has improved the build situation in C++ significantly.
12