HN user

themafia

3,317 karma
Posts0
Comments1,833
View on HN
No posts found.

Pascal style strings were much safer.

The limitations were brutal. Initially you could only have 255 bytes in a string. The length of a string and the size of the allocation are now separate and you may need to think about that unused memory in your design. The problem now doubles with the introduction of UTF-8. Your string size is in bytes and you need to track characters separately.

If you want to create an array of strings you either need to specify the length of all strings and accept the memory overhead or have an array of pointers to strings. If you use an array of pointers you may end up choosing to use the 'nil' value as a sentinel that means "end of list." So we're right back where we started.

--

Because someone decided to downvote this HN has limited the speed at which I can reply. This site is tragic and I'm fully done with it now. You can spread propaganda and poorly sourced zeitgeist and be among friends but if you try to have a genuine conversation about programming languages you are made to be unwelcome immediately. Screw this.

--

No other data structure works like this.

The linked list.

You can't mess this up in an array

C happily decomposes arrays into pointers. You can erase your length information from the type. This was an intentional decision.

Strings are the only data structure that assume there will be a NULL at end.

Which is why almost every string API has a version that allows you to specify the maximum length. The fact that you can use a NUL doesn't mean you have to. Which is why the concept of "sentinel values" is broadly used in many types of applications you haven't considered here.

That's one of the problems with the lack of diplomacy in the US's position for the past 40 years. We have pushed the envelope beyond our own control:

"The U.S. military reverse-engineered Iran’s Shahed-136 loitering munition to create a low-cost, one-way attack drone squadron in the Middle East called LUCAS (Low-Cost Unmanned Combat Attack System)."

Necessity is the mother of invention. We spent billions in exchange for making our "enemies" stronger. We really are a ridiculous nation.

They're falling back to the C/A (coarse, civilian) signal. Part of the attack is to drown out the frequency where the P (fine, military) signal is so they can more easily attack the civilian signal.

There's another frequency they could be using that is higher power but hasn't been put into production yet.

spoofing

I don't understand how "spoof-to" works. If you have to mimic a satellite then isn't everyone going to get a different location? Unless you're tracking a specific target how can you intentionally spoof them to a desired location? I'd assume the best you could do is create a fixed offset.

The military wants to go mostly inertial and is working on better inertial systems.

Given the drift rate this is an idea for munitions but exceptionally difficult to actually operate in a vehicle.

You can use a trivial experiment to verify that you can't keep details in your sliding attention window for more than a few seconds or focus on more than a few things simultaneously.

I said "context window" not "attention window." Of course spans of attention are limited. Knowledge is not. Knowledge is often highly specific.

You're possibly mixing it up

Not really. You've simply failed to verify your understanding of my argument and instead created something of a strawman.

You aren't keeping the entire codebase in your memory, just its highly processed and conceptualized version

And what is your basis for this claim? Why a codebase? You don't think I can't remember an entire function? Yet actors can remember entire sets of lines for a scene? Is that just a highly processed and abstracted version in their minds? And they just run some cognitive loop to recreate dialog in real time?

they need stronger processing of what they already remember.

What is "stronger?" More time? More memory? More compute? And how is that put to use? Why is it, when given certain prompts, that LLMs reproduce 100s of pages of directly copied and copyrighted work?

Models can be trained better to cram more intelligence into the same amount of parameters, that's what I mean.

Cool. _How_? What is the limit of this training? How efficient is it? How many resources do you need on the input for a given increase in output? Otherwise it's just a ton of hand waving going on here.

Human attention is truly ephemeral, with a ridiculously short span.

I do not believe this at all. I think you'd have to have a very limited experience working with other human beings to be able to believe this.

and by training it better.

"Oh yea, just do it _better_. That's your problem." Perhaps some people operate without any context but most of us find the experience lacking.

That has never happened before like this.

You should possibly spend some time reading what people used to say about the invention of Radio and Television.

It is quite extraordinary and breath-taking at times to see the agents in action;

So is any magic trick. The unsettling notion that it may all just be an illusion that you've failed to correctly understand doesn't seem to weigh on people.

its almost hard-drug like in its potential long-term psychological effects.

That might have more to do with how the owners of these products choose to market and deploy them. Perhaps if they peeled back the covers just slightly your euphoria would change to dread. There's an Upton Sinclair moment coming.

A large portion of DNS is outside of your control. You're relying on at least two third parties you have indirect relationships with in order to work. If you're outside of the standard TLDs you've got additional social factors that can control your resolution.

Granted. It works really well in practice. It should be noted we haven't actually had the world war the Internet was designed to survive. So we're not entirely clear on the semantics of operations in unusual and unexpected configurations. I would expect DNS to be the first shoe to drop there.

If you've ever built a three-window layout and then wished the editor pane were on the other side, these do the job and keep every buffer in place while they're at it.

I built a tmux like buffer manager. So I can just pick a window, press Alt-F#, and switch that pane over to whatever buffer I want. It's super easy to even display the same buffer twice but in different panes.

If you're using one without the other you're going to have a bad time.

If I want to change layouts I just close panes down to one and then open it up in the configuration I like. Then I just switch to each pane and Alt-F# the correct content into it.

To be fair to AMD, there is no clear indication that the company ever publicly advertised TSME as a consumer Ryzen feature.

A feature that was possibly accidentally enabled on consumer chips is now being disabled. I would guess that the number of owners of consumer chips who also relied on them for encryption is exceedingly small.

The primary concern persists. The manufacturer has an exceptional amount of control of the state of your CPU most of which you cannot change and an unknown chunk of which you cannot even see. We are sort of playing in a fools paradise.

It seems like they did all this to please Elon Musk and advantage SpaceX. The people at the top are nihilists. They don't even believe the things they say.

I'm a simple guy and I don't understand the "sales and marketing" cost.

I don't like these products. I have several negative opinions on them. To the extent they work and there is a customer base what marketing could you /possibly/ be engaged in? Doesn't the product sort of market itself? Or another way is this a product that you can market to expand your MAUs?

It's so polarizing I can't imagine how that $5.7B is being spent.

I feel like that should be a warranty claim. You sold me one car with a specific set of features and now you've updated it into a different one lacking those features. It's not the same car. You broke it. Fix it or pay me for it's value.

It could be 2 to 4 years to build the space. You can also structure the loan so the interest is amortized over a longer period than the loan which simply requires a balloon payment or refinancing of the interest balance at term which can offset some of the costs presented in this article.

It also does look like San Francisco has a vacant storefront tax although the penalties are fairly light.

https://abc7news.com/post/remember-vacant-storefront-tax-san...

That's fair. What I was trying to get at is that Weinstein is also independently successful albeit in a completely unrelated field. There may be small parts of truth in his critique of the field but GU is just so completely batty and ignorant it's worth discounting his analysis here entirely.

I find greater fault in the pushing of his "Intellectual Dark Web" pseudo-cult. So I would agree he's actually a contemptible character but for slightly different reasons.