Better HN
topnewbestaskshowjobs
Log inSign up

sumtechguy

2,602 karma · joined Jul 31, 2020 (6y ago) · 1,754 submissions

Submissions

comment 1y ago · link · parent

Exactly. This stuff has been known about for a long time. It was just kind of ignored and you kinda hoped your library might have something to deal with it (boost, win32, pthread, etc). Then each one acted differently on different platforms or with each other. Some of the std lib is starting to have things we need. But now I have to deal with things in the crt and stdlib that actively break multi threading. Mutexes, semaphores, flags, pulsing, etc is not exactly new patterns. Real mess and you have to understand it too deeply for it to be meaningful to more people. It is why things like promise/async/await are very popular with javascript and their libraries. As it looks like multithreaded programming with a decently clear interface as to what it is going on.

comment 1y ago · link · parent

We had multi CPU stuff in the 90s. C/C++ was dead set on ignoring it for a long time. Every OS had its own way of handling it and all with subtle weird bits that did not act like other OS's. You could not even trust the stdlib or crt to get it right with their globals that could change underneath you.

So it was left to the developer. It is much better now but for so long the problem was ignored and now we have decades of 'not sure if I can touch that code'. Also by default C/C++ are fairly open about sharing memory. So it is very easy create race conditions on memory. It would be nice if the base language had a concept of 'locked to a thread' or 'i want to share this with other threads' then the compiler can flag where I have wandered into the weeds for a class so we could catch the race conditions at compile time, at least some sort of warning.

Sharing semantics were awful for a long time. stdlib has done some very good things to help clean that up but it is still very easy to share between threads and cause yourself a headache.

comment 1y ago · link · parent

I have seen people re-write large chunks of functionality not knowing it was already there in a form they didnt know about. Have done it myself a few times. Write largish blob of code. Replace it with one system call that does the same thing.

Also most things are simple. It is the data and libraries and applications from those simple things that are interesting. Take for example C++. The actual language is a few dozen keywords. But the libraries and things built using those small things is quite large.

Also most drivers are written so that we can re-use the code. But with the right docs you can twiddle the hardware yourself. That was 'the 80s/90s way'. It was not until macos/os2/windows/xlib that we abstracted the hardware. Mostly so we could consistently reuse things.

comment 1y ago · link · parent

We ignore it too. But I can tell the ones who do answer. They get extremely irate if you do not pick up when they call. As if it is their personal line to you and you should drop everything for them. I dump them into voicemail too.

comment 1y ago · link · parent

I have had the opposite. I think it really just depends on which lists your number is on.

comment 1y ago · link · parent

> Some DVDs have less-than-stellar image quality even compared to other DVDs. The format doesn't mandate some fixed bitrate numbers, so it can be truly atrocious.

No kidding. Recently replaced my copy of war games. The DVD was 'ok'. But the later bluray transfers are much nicer.

Some of the early stuff was literally throw it on a telecine machine, encoded it, and ship it. With lots of film wobble and poor color especially in the red channel (due to a bug in early software). Plus poor encoding noise that didnt have a clue what to do with film grain.

Later on they actually physically clean the film first and scan a 4/8k rate first. Then the better ones a light touch on digital correction. Though some are very heavy handed and create poor a reproduction and you are better off with the previous DVD.

comment 1y ago · link · parent

I own lots of DVD's. DVD day was my jam. Most new releases were 20. Sometimes if they were some sort of special collectors edition they would be 25. Then usually after a few months on the shelf they would come down to 15-18. After that the bargain bin. Bluray/HD started around 25-30 when they came out. Box sets were usually like you say 50+ some as much as 200.

comment 1y ago · link · parent

If you put everything in one file you can live your dream! :)

comment 1y ago · link · parent

I was a showbiz kid (same thing but different 'band').

For me I really didnt care much one way or the other about the animatronics. You would snarf down your pizza watch the dumb show and go back to the game room. Now some of my friends were smitten by the things. They wanted front row and would try to get the merch.

They were mildly interesting and gave the place a uniqueness over the dozens of other places with video games and pizza. More importantly your parents would be in on it and would take you out to a 'safe' arcade.

When the places where all over the place. It was a tiered system. The showbiz/chuckie places were for kids under 12. Usually much cleaner and less of the older kids bullying the younger ones off the machines. The arcades were for the over 10 group and were much less supervised. The people running them would actively discourage older kids from coming in by themselves in groups of 4 or more. If you went in and dropped a couple of quarters and kept to yourself they would ignore you.

I was invited back years later to a CC with a family. The pizza was utter rubish, SB had better pizza. Many of the games were outdated or broken. The place felt worn out and tired and very focused on the ball pit (which any free playground can provide a similar experiance). Not pleasant at all for anyone involved. Pretty sure the animatronics was broken then too.

The five nights thing would be more for the 12+ crowd. CC is squarely aimed at lower aged kids and parents who want 'a break'. They might know about it and have played the game but it would not factor much on if they want to go.

comment 1y ago · link · parent

LLMs and their close buddies NN's use models that do massive amounts of what amounts to cubic splines across N dimensions.

Cubic splines have the same issues as what these nets are seeing. There are two points and a 'line of truth' between them. But the formula that connects the dots, as it were, only guarantees that the two points are inside the line. You can however tweak the curve to line fit but it is not always 100%, in fact can vary quite wildly. That is the 'hallucination' people are seeing.

Now can you get that line of truth close by more training? Which is basically amounts to tweaking the weighting. Usually yes, but the method basically only guarantees the points are inside the line. Everything else? Well, it may or may not be close. Smear that across thousands of nodes and the error rate can add up quickly.

If we want a confidence level my gut is saying that we would need to measure how far away from the inputs an output ended up being. The issue that would create though is the inputs are now massive. Sampling can make the problem more tractable but then that has more error in it. Another possibility is tracking how far away from the 100% points the output gave. Then a crude summation might be a good place to start.

comment 1y ago · link · parent

The thing is GenAI will be just like CGI. When it is bad it will look bad and has 'that look'. But when it is good enough you will not even know.

The creativity has already gone sideways for most of this. I can with a few simple sentences create an acceptable picture (in some cases a short film). With a AI pipeline I can make some pretty cool scenes. Instead of having to know how to properly draw an s curve with a nice gradient bit of layered colors over it and 14 meticulously created layers. I tell the program to do it for me. It does an acceptable job in a fraction of the time. People can complain all they want but the rest of us are already using these tools and will continue to do so until something better comes along.

comment 2y ago · link · parent

In NC it really depends on where you live. With some of them looking very nice. While others it looks like it has not been touched in 20 years. I personally think they just have a set timeframe to refresh things and they stick rigidly to that no matter how good or bad they are.

comment 2y ago · link · parent

With these kind of servers you want to look at the idle draw. As a homeserver that is probably your 80-90% use case. Some of them draw a significant amount at idle as they are not configured to run that way. The next thing to look at is fans. They can be rather loud (but can sometimes be configured to run slower and less loud). Also many of them are rackmount items. So you will want to think about how to stack your machines. You can buy used racks or a halfrack or just dump them on a table somewhere. Also sometimes you have to worry about the power supply. Sometimes they use different power cables than what a normal house would use.

I personally moved about 10 years ago to a very simple setup using a intel nuc. The idle is in the 5-10w range and max 45-65. I was using something that was idle 100-200. It shaved off about 15-30 bucks off my power bill per month when I did it plus a couple of other items in the house that had very poor idle. I am planning to move back to something a bit more interesting. But the specs to keep an eye on is the idle and max draw. For me I want something modest. But if you go all out and drop a couple 4090s in there and a decent xeon or threadripper it can get up there. Also keep in mind some of them have extra interesting things like fiber channel cards or some sort of infrastructure fabric ports (or lots of sata). They are not 0 but do add into the cost. So you may want to look how to disable them if you are not using them.

So something that is ide 5w would be about 5 dollars per year idle and about 65 form my max load. My price per kwh is 11 cents. Pretty sure the formula is ((number of watts)/1000)24365*(price per kwh). That should get you the yearly cost. Just run the calc for max and min load.

So you may be better served buying something newer that uses less power in the long run. Short term though playing with old hardware can be cost effective and fun.

comment 2y ago · link · parent

> Not all .mp3's are created equally

No kidding. There are a decent number of options to pick for quality of mp3. VBR/CBR, bitrate, joint/stereo/mono, and so on. I personally just pick something that sounds fairly close to the original. But that only really matters for me when it is side by side. Give me a few days between picking and I can not really tell anymore.

comment 2y ago · link · parent

There is a musical artist on YT talking about this. He was sitting there listening to AI generated music. He said he could not tell and thought it was decent. His kid and wife however could and aske why he was listing to 'ai music'. That is a professional musician who couldn't tell. My wife can hear something she can not describe that makes her say 'it sucks'. Meanwhile I listen and think it is OK. It is like these things have tweaked that audio/visual hallucinations people see and hear like yannie/laural or the gold/blue dress.

The corridor crew noticed something about AI generated pictures. They all seem to have similar lighting and chroma. So they have this 'look' to them (once you see it). That is because the pictures start off as a random noise picture and coalesce into a picture. So the lighting stays the same on just about every pixel.

comment 2y ago · link · parent

The truck packing thing is one thing he was proud of. Last time I saw him he was trying to work it out for 3d. But for that particular use case many companies found that optimal packing is not necessarily the best use of time (as some value speed over total shipping volume). Sometimes just stacking it up and leaving some slack was faster. Wonder if the same sort of issues show up in GPU texture packing? I would suppose that could only pop up in some edge cases and only if you are building the textures at runtime.

comment 2y ago · link · parent

If what the churn mills are any indicator the coherence is already starting to get there. Saw one this weekend where it was star trek set in the 1940s sci-fi vibe. The coherence was a bit off. But way better than it was last year with the same kind of videos. Even from scene to scene it is getting better. In scene the warping is starting to go away. Add in the ability to write a story using chatgpt (or something like it) then add in the 'ai voices' and you can pick and choose who/what you want.

Movie making is about to radically shift to an extremely lower cost model to produce. Just not quite yet.

I can already ask chatgpt to 'write me a SCP story about a couch found in an abandoned factory that is keter class' and it will pump out something mildly entertaining in that style. It is not that big of a leap of logic to say 'good enough' will win out. Even now you can kinda pull it off with a small amount of work and stitching several tools together. There is no reason to think it will not be automated together.

comment 2y ago · link · parent

Packing has so many applications for different things. Such as optimal packing of a truck or shipping container. Or how to optimally pack graphics into a GPU texture.

I had this guy as a prof. https://en.wikipedia.org/wiki/David_A._Klarner I have never encountered someone so excited about dividing up rectangles, as it is related to combinatorics. Also with such a seething hatred for floating point numbers.

comment 2y ago · link · parent

> I am skeptical that this can be repeated at all nowadays

For me I think it was more of an access issue that caused me to want to do it. Once you were done with the 2-3 games you might have. You started getting the mags from the library and typing things in and hoping it would work (no typos!). Just so you could get another game.

Along the way you picked up tons of low level programming. The computers of the time were 'batteries included' usually including some form of BASIC and then an escape into the world of ASM if you knew the right incantations. After awhile you would find hey this programming thing is sort of fun too.

But today a kid has some access to things like what you point out. But however they also have access to thousands of other games for a very reasonable price. The older systems you better be committed to getting that game you wanted as they were decently priced high enough you had to shell out a decent amount of cash to get it. With free to play and thousands of low priced games plus the massive catalogs of older systems. Getting a game is now 'easy' and cheap.

On my old computers apple2, c64 and ti994a the prompt to launch things was a programming prompt. With the GUI world there is no prompt just files and icons. Getting an IDE setup on most modern systems is not hard but it is an extra step (and fiddly with some of them). You are then presented with a blank canvas but you have to know how to fill out the form to get it to do anything at all.

Could we replicate the old systems? Totally. Would anyone actually use them? Not so much as to 'get things done' the GUI is way better. There is a step missing if we want to replicate what we had. But is 'what we had' the right way to program? That I am not convinced of. Pretty sure if I said 'yes' that would be my bias of using it that way showing. We would have to have a different way that still brings people up step by step we had but fits into the current landscape of computers.

comment 2y ago · link · parent

It is decently common enough in unix. You are correct with my windows stuff it is fairly rare to set env vars to change the launching process. In the unix world though I have seen the pattern a decent number of times. With windows programs usually you see the pattern (not always) if it is ported from a unix system. Windows likes its ini/registry/cli items to do configuration. It doesnt mean the pattern can not be used in windows, I personally just have not seen it as much with native win32 apps. If you fire up something like 'git bash' you can see entire bash functions bound to env variables.

I think it goes back to where windows came from. That environment space in DOS was not exactly huge (256 bytes at one point?). In unix it seems like it was much larger and expressive.

comment 2y ago · link · parent

That has been around for a long time. I remember it in the early 2000s.

> Decades old footguns - aaargh!

Indeed...

The tricky problem they have is wrapping it into some sort of lock could cause so many issues. Places that dont deadlock, suddenly could. Not a fun problem to solve. In practice it is usually not too bad as you are usually not changing your env vars much. But when you run into it, ugh.

comment 2y ago · link · parent

You do not even need extra characters (although they help). You can use spaces, missing punctuation, upper/lower case in particular cases, conjunction usage and not using it, word substitution, common misspellings, transposed letters, etc. How many extra spaces/tabs can you add to the end of a paragraph? At the beginning? Between sentences? Inside them? Then you have an AI agent design it and then train another one to detect it.

comment 2y ago · link · parent

It keeps temp files in one of the appdata folders. You could just blow them away and it would just remove them from the tab list. The issue is do you want to keep that stuff or not. Also ctrl-w and n. should work fine too.

comment 2y ago · link · parent

They are effectively the same but only because the set theory algebra lets the optimizer move things around.

The first one says 'put these two tables together then apply the where conditions that link them together and other stuff'. The second one says 'put these together but pay attention to this on condition when doing so and some other stuff'.

Now the set theory algebra lets the optimizers pick out parts of the where condition and move them up to the matching part. You see that in your query plan. The optimizer will also add other coditions such as what you see with the index pick and the type of matching/filtering it is using.

I personally have used/abbused the on condition to make things more clear things that really only apply to that table and matching.

Now he does ask is it the same with MySQL. Probably but someone would need to look at the query plan it spits out. But my guess is yes.

The question is sort of like asking is x + y = z the same as y + x = z. Well yeah sorta mostly. You can get weird cases where doing the order of operations differently gets you different speed profile results though. But the output is the same. But that is the fun of playing with optimizers and your knowing your platform characteristics.

comment 2y ago · link · parent

Many 'you should read these lists' are just that lists. Usually by the author of the list and things they have read and think you should too. That they missed something is not surprising. Lists like this have an air of authority when they usually boil down to 'things I have seen/read and like/hate'. I use them as interesting things to go thru to see if there is anything I missed.

comment 2y ago · link · parent

I always wanted to see stuff like this website put into the compiler. https://graphics.stanford.edu/~seander/bithacks.html

The very tough problem is recognizing to emit the correct code.

comment 2y ago · link · parent

College has been that way for a long time. College gives you a fairly good knowledge about a subject. But very little in practical experience in using that knowledge. To get experience you have to do the job. College just gives you a short cut on the job in not having to look some things up and spend a few weeks figuring it out. But you are still inexperienced until you go thru it a few times and get it wrong, then right.

Another downside is the loan officers in the colleges are not showing these students the downsides to these loans. They are borderline predatory and selling to financially inexperienced people. When I did this in the mid 90s they are super happy to give me a loan that was 0% until I got out then went straight to 8.5%. I at the time had enough math to figure out 8.5% was a bad deal for the amount of income I was about to earn.

comment 2y ago · link · parent

I am going to give them the benefit of the doubt. Maybe they are thinking it would probably run out due to poor segmentation? It would be quite the interesting problem of network segmentation to run your whole service provider with thousands of customers and network out of a single 10 network. Realistically a better option was each customer gets their own locked off network and vlan level.

comment 2y ago · link · parent

The problem with their torrents is they are usually broken. Lots of complaints on them being broken. But no one fixing it.

comment 2y ago · link · parent

I got a new house recently. The default windows were pretty good already. My wife still did not like the amount of light coming in. I still wanted some. So we compromised. We bought reflective window tinting. About 500 bucks to do the front of the house. Will do the back next. Easily reduced the temp in house by quite a bit.

The other thing the builder did foam insulation of the garage doors and walls. Easily 20F difference from my previous house in the same area. Reflective ridged insulation in the attic too. My old house 110 easily, in the summer. It is basically the same temp as the outside now. Cost for the AC is basically half what my pervious house was. I would go for awnings at this point as it is basically one of the few things left I could realistically do. But HOA...

1
8910
59