HNHacker News
TopNewBestAskShowJobs

jhallenworld

4,964 karma · joined October 31, 2013

submissionscomments
jhallenworld··on A token-smuggling jailbreak for ChatGPT-4
The uncensored version must be available to someone. It will be worth big bucks, along the lines of "Write a chain email that is very effective at persuading rich people to send me lots of money".
jhallenworld··on PCIe for Hackers: The Diffpair Prelude
The newer versions of Camera Link don't need the clock lane, FPD Link-II and above or Channel Link-II and above.
jhallenworld··on PCIe for Hackers: The Diffpair Prelude
Also it's a good point to understand just how these SERDES blocks work. There is a CDR circuit, but it is fully dependent on the refclk, which can only be off a tiny amount from the one used on the transmit side- it's not like there's a wide-bandwidth PLL that recovers the embedded clock from the encoded data.

This is unfortunate, because for transporting video you would like to also transport the pixel clock, but you don't get it for free from the SERDES CDR.

DisplayPort use SERDES and have to transport the pixel clock. They do it by sending a message with fractional relationship between the pixel clock and the SERDES clock to the receive side, which derives the pixel clock from the recovered SERDES CDR clock using a fractional-N PLL.

I had the idea of transporting video over PCIe at one point, so I was interested in this. The reason is that PCIe is sometimes available for free, so why not use it. I wanted to use a local reference clock, so would have been forced to use the DisplayPort scheme (but no fractional-N PLL available).

SERDES with actual PLL CDRs in them for video do exist, but they are different from the generic SERDES used for PCIe and networking.

[edit: removed HDMI, only DisplayPort works as I said above]

jhallenworld··on How deep is the rot in America’s banking industry?
So what should SVB have done instead? It's well known..

https://www.proshares.com/browse-all-insights/insights/bond-...

But even then: Some professor was on Bloomberg today wondering about the hedge strategy. The hedge providers may be at risk if all of the sudden there are a huge amount of sales there. But this only happens during heavy withdrawals...

jhallenworld··on PCIe for Hackers: The Diffpair Prelude
Here is one thing I've learned about PCIe- the .1 uF series capacitors must be .1 uF, .01 uF will not work. The reason is that the link detection depends on the RC charging rate of these capacitors. Can you guess why I know this?
jhallenworld··on Launch HN: Electric Air (YC W23) – Heat pump sold directly to homeowners
I had a recent experience with replacing the main blower motor on my American Standard gas furnace: the variable speed motor has firmware, so can you guess what they did? The motor has to be programmed by the distributor or it will not work in your furnace. You have to provide the furnace's serial number for the programming. Worse, the local distributor would not sell it to me! They will only sell it to an installer. "Qualification" for an installer is load of nonsense- they just want your EPA refrigerant certification- which is nothing compared to a real license, like plumbers or electricians.

So please:

No serialized parts.

I should be able to buy replacement parts from you or common online suppliers without hassle- like amazon.com or supplyhouse.com.

I should be able to install it myself, at least in theory: so unit comes pre-charged, and various lengths of linesets are available so I don't have to do any brazing.

There is a company making a window unit heat pump: this one https://www.gradientcomfort.com/

You should make something like this.. basically a zero-installation work version of your product. This will be a big hit in places with insane labor costs- like New York City.

jhallenworld··on Some VC firms are urging founders to pull money from Silicon Valley Bank
There is a legal process to get your money, so you can guess that this is not going to be quick. I remember stories about this after 2008.
jhallenworld··on Possible reasons for 8-bit bytes
I used a DECSYSTEM-20: it had variable "byte" size.. for ASCII you could (and normally did) pack 5 7-bit bytes into its 36-bit words. There were instructions to read and write bytes of any size you want out of these words.

The C compiler used 9-bit bytes, just to make pointer arithmetic simpler.

jhallenworld··on Possible reasons for 8-bit bytes
>It looks like the next important machine in 8-bit-byte history was the Intel 8008

How about the PDP-11? Both the 360 and the PDP-11 heavily influenced microprocessor architecture.

jhallenworld··on Reverse-engineering the electronics in the Globus analog navigational computer
If you follow the channel you know all about Master Ken.
jhallenworld··on Mapping hidden corridors and chambers in the Great Pyramid of Giza
A very nice youtube channel is History for Granite:

https://www.youtube.com/@HistoryforGRANITE/videos

I've learned from this channel that there is 4500 year old wood is still in place in some of the pyramids. There has been carbon dating on it, and ash in the mortar.

jhallenworld··on Most data work seems fundamentally worthless
This is funny to me. In the old days, this was called: cost accounting to determine the profit of any particular item you sell and market analysis to see how many of which things your customers are likely to buy. Join the two results to optimize your profits. It's not rocket (/data) science.

Actually neither of these is particularly easy to do for unorganized companies.

jhallenworld··on Show HN: Parallax wallpaper engine for Linux and Windows
You need to use the Wii remote in reverse so you can make a fake window.

https://www.youtube.com/watch?v=Jd3-eiid-Uw

(can't believe this was 15 years ago now..)

jhallenworld··on EPA orders Norfolk Southern to conduct all cleanup actions related to derailment
The problem is that the EPA has no credibility. They demonstrably lied after 9/11 about the air quality in Manhattan. Maybe you could say that it was a necessary lie to encourage people to clean up, join the rescue effort, get back to work, etc. But now why should I trust the EPA to not lie about Palestine? All of the same arguments for a good lie apply. The people in charge today are only going to worry about the immediate short term risk, and definitely will not care about long term risk- by the time you get cancer, they will have been long out of power.
jhallenworld··on 200-year old heat pump technology is back
Do any mini-split systems have auxiliary heat?

The cheapest aux heat is to buy a bunch of space heaters.

jhallenworld··on Data consistency is overrated
How about I order something, but the inventory was off, so I never get my item. This is how you get unhappy customers. You could have buffer inventory to help with your bad system, but then you are tying up money in inventory..
jhallenworld··on Does your office have a library?
My current company has the "hall of knowledge". I've contributed a few shelves to it.

Previous company had a science fiction library.

jhallenworld··on SatCat5: FPGA gateware that implements a low-power, mixed-media Ethernet switch
Looking at their patent: how is this different from an IOT gateway? Or a router that supports SLIP, ATM, PPP, etc.? Whatever..
jhallenworld··on SatCat5: FPGA gateware that implements a low-power, mixed-media Ethernet switch
Ethernet over UART: you mean PPP? (RFC 1661)
jhallenworld··on Loyal to the Company
>our horrible safety net

This is intentional- an employee who feels secure is an expensive employee.

Mitch Mconnell debating $200/wk Covid relief funding: "my god, they won't work!"

jhallenworld··on GitHub staff are required to use Teams by Sep 1, 2023
This is like being acquired by IBM and being forced to use Lotus Notes and Sametime. You must eat your own dogfood..
jhallenworld··on My review of the C standard library in practice
Ack, you are right, I read it too fast (triggered my pet peeve too early..)

If the input is really not random access capable, provide buffering. You could imagine a version of FILE that automatically does this. There could be a some kind of truncate call to make it forget all past input, once you are sure it's not needed.

In an OS you will have the resources to do this (malloc..). In other contexts (embedded), you may not.. but likely in those cases you don't have pipes.

With a bit more we can have full arbitrary backtracking parsing. This parses "<hex> bob | <decimal> fred" or prints the unknown input:

    if(

      fscan_push(f) && fscanf(f, "%d %e", &n) && fscanf(f, "fred") && fscan_done(f) || fscan_backup(f)) printf("got fred(%d)\n", n);

    else if(

      fscan_push(f) && fscanf(f, "%x bob", &n) && fscan_done(f) || fscan_backup(f)) printf("got bob(%x)\n", n);

    else

      printf("got something else '%f'\n", f);
'%e' expect more input

fscan_push: save current location on a stack associated with FILE. Return true.

fscan_done: drop location from stack. Return true. If stack becomes empty, drop input history up to current file position.

fscan_backup: restore to location from stack. Return false.

'%f' in printf prints the rest of the specified FILE on the stdout.

jhallenworld··on My review of the C standard library in practice
No mention of printf and scanf. Printf is annoying because of the PRIu32 macros in case you want to print uint32_t in a portable way. How about conversion specifiers for the stdints.. %u32 %d32 or whatever.

As for scanf: I want it to either succeed in parsing all of the arguments, or fail, but in this case leave the file position unchanged (so random access is required on input). This would allow trying to parse with another call to scanf, but with a different format string. For lists involving an arbitrary number of items, provide a conversion specifier that leaves the input alone and returns success: this way you can iterate the list.

For example, these would be equivalent:

   if (scanf(f, "%d %d %d", &a, &b, &c)) printf("Success!\n");

   if (scanf(f, "%d %e", &a) && scanf(f, "%d %e", &b) && scanf(f, "%d", &c)) printf("Success!\n");

   /* %e means more input expected, without it scanf fails if no EOF at that point */
I should be able to provide my own parsing functions in it: imagine a conversion specifier for JSON that returns a tree.

The existence of sprintf and sscanf point to bad design: I should be able to open a block of memory as a FILE, which would make sprintf and sscanf redundant. Also I should be able to open some kind of block device: meaning the FILE has pointers to user provided read and write functions. With this I could printf and scanf to some indirect device such as an EEPROM.

We should be using scanf for the program's argument list. I mean the program should not get an array of pointers, but instead a FILE that contains the arguments. The memory layout is then abstracted. The pre-conversion of the command line to an array is totally unnecessary, only exists because libc's scanf sucks.

Arbitrary length strings could have been handled with FILEs..

jhallenworld··on How cheap digital verniers work (2017)
The built-in metric/imperial/fraction conversion is also nice. I tried dial calipers that do this (they have two dials), but they are even harder to read. It's better to buy one imperial and one metric.

https://www.amazon.com/Imperial-Stainless-Accurate-Shockproo...

jhallenworld··on TWM − Tab Window Manager for the X Window System
So this is what's happening, but it's still messed up. The menus appear, but don't disappear, so pretty soon I have 20 menus all over the screen. Also no mouse pointer until I click. Also, the menu entries don't do anything (yes, I'm holding until the entry is selected, then releasing).

Anyway I tried it in vnc4server, where it does work, though you have to start it with LANG=C. But now I can't find any programs that are not working.. I'll have to use it for a while.

jhallenworld··on TWM − Tab Window Manager for the X Window System
It's usually some commercial programs that have issues.. I was going to try it and give a more specific answer, but Ubuntu does not let me run twm. I get a blank screen when I log in with twm selected.
jhallenworld··on TWM − Tab Window Manager for the X Window System
twm is the best, but it's annoying that modern programs are not compatible with mouse focus (meaning whatever the mouse is pointing at is the focus for input). We've definitely given up interface speed in exchange for conformity.

I used to set it up without title bars. You had to know my personal shortcuts to use my desktop.

jhallenworld··on Is AM radio dead?
On shortwave you get the "Supreme Master"- who owns the Loving Hut chain of vegan restaurants. They are nice, but possibly a cult..

https://en.wikipedia.org/wiki/Ching_Hai

But late night AM, you get "Ministry in the Marketplace with Dr. Richard Hamlet" on WEZE 590. This is the craziest right wingnut radio I've ever heard, even including shortwave. Last week they were ranting on about the "death vaccine".

"By the 1950s, America had forgotten the Biblical principles that it was founded on. In the mid-60s, government-controlled education was implemented. At that time, The Foundation for American Christian Education was formed to help limit that control by educating families and even schools on the . . ."

jhallenworld··on Is AM radio dead?
There is a guy around Boston who did this: Bob Bittner

Bought an old Cambridge AM station for cheap.. runs at low power to keep the costs low.

Check out: https://en.wikipedia.org/wiki/WJIB (740 AM)

For years they had no commercials, but took donations (but they were never non-profit).

jhallenworld··on Is AM radio dead?
So in Boston (which is the No. 10 radio market),

https://ratings.radio-online.com/content/arb013

WBZ 1030 AM (news radio) hovers around no. 5. They transmit on HD radio also (HD 2 on 107.9 FM), but the range is limited compared with AM.

RKO 680 AM (local right wing talk radio) is also near the top.

Conclusion: AM is not dead

← PreviousPage 13 of 34Next →