HNHacker News
TopNewBestAskShowJobs

jhallenworld

4,964 karma · joined October 31, 2013

submissionscomments
jhallenworld··on Queue System Analysis at Starbucks Stores (2021) [pdf]
Not exactly related, but I thought a great use of facial recognition would be for cashiers: as soon as you step in front of the counter, the register shows the cashier your name (or maybe top likely names), and what you ordered last time. With this information, the cashier could press just a single button for your most likely order (making them faster), and refer to you by name for a personalized experience.
jhallenworld··on Howard Hughes modified a 1925 Doble steam car to reach 133 MPH (2022)
Fuel-oil (Kerosene).
jhallenworld··on Howard Hughes modified a 1925 Doble steam car to reach 133 MPH (2022)
That Doble engine (or its technology anyway) was used in the Besler steam powered plane. Here is a video of its flight:

https://www.youtube.com/watch?v=nw6NFmcnW-8

On Douglas Self's museum of retro-tech, of course:

http://www.douglas-self.com/MUSEUM/TRANSPORT/steamplane/stea...

jhallenworld··on The Epson HX-20 – A Contrarian's View (2021)
I used one long ago: I remember that, as with the TRS-80 model 100, the keyboard was outstanding.
jhallenworld··on The Epson HX-20 – A Contrarian's View (2021)
One reason is limited memory and address space- the in-memory size of CP/M was something like 9K (including BIOS, BDOS and CCP). BASIC is at least another 8K. If you are using CP/M as a program loader, you don't want to waste that 8K.

Another is that BASIC was not extensible, at least not in any standard way. But CP/M was: to add a command to CP/M, you just add a .COM file of that name to the disk.

jhallenworld··on A peculiarity of the X Window System: Windows all the way down
Well I think this is desired behavior. But what if you grab a slider (so that the mouse button is held down), and drift out of the window? I thought some versions of Windows didn't handle this well, the slider would jump back home or something unless you kept pointing at it. The way it should work: as long as you are holding the button down, it should not matter what the x-coordinate of the mouse is if it's a y-slider, and vice-versa.
jhallenworld··on A peculiarity of the X Window System: Windows all the way down
An interesting part of the X protocol is XGrabPointer (and XGrabKeyboard). These force events to be delivered relative to a particular window instead of to the focus window. Cascading menus can be implemented by making a stack of such grabs: push when you open a submenu, pop when you ESC back to parent.

Anyway, so it's very useful that everything in X is a window, because it works well with this input grabbing. Also it's nice for borders: the border was one outer window, and the drawing area was a smaller inner window.

I don't quite remember anymore, but I think a bad part about using the X's windows is that the coordinates were limited. Sure you only need 12-bits or so for screen coordinates, but it's convenient if you had 64-bits to handle any possible clipping or relative offset situation.

jhallenworld··on A History of the TTY
I used line editors in the mid 80s on old-at-the-time systems. Some editors supported both line and screen modes, but we didn't have the more expensive terminal which would have allowed screen mode (there were a class of glass ttys with no cursor positioning commands available).

It's pretty easy to get used to line editors, you get used to using the search command to position the cursor on the correct line and change command to modify it. Some friendly line editors include DEC's EDI and EDT (PDP-11) and E (Motorola Exorciser).

UNIX ed is nice in that it has has regex support, but I don't like its side effects- that p, l and i change the cursor line.

I had no use for edlin since screen editors were available on the IBM PC.

I tried but never got used to TECO: this is like a screen editor, but no screen: meaning the cursor could be anywhere in the file, including in the middle of a line and it's up to you remember where it is. Some TECOs had a screen mode where it would show you the buffer and cursor position in one window, but accepted normal TECO commands in a separate command window ("TVI" on TOPS-20 worked like this, EMACS was a TECO extension).

jhallenworld··on Japan's Nikkei surpasses 1989 all-time high
The rates need to go lower: government debt is too expensive to service at these rates.
jhallenworld··on GoPro Ride Through an Electron Beam Irradiator at Full Beam Power [video]
Don't stick your hands in the particle accelerator beam either:

https://www.youtube.com/watch?v=8UgKki1tCKI

jhallenworld··on Prime Video cuts Dolby Vision, Atmos support from ad tier–and didn't tell subs
I had such high hopes for Wheel of Time..
jhallenworld··on Nine US states are teaming up to accelerate the adoption of heat pumps
I found the coal price:

https://www.blaschakanthracite.com/dealers/pricing/

6250 kwh / ton... "$200 / ton at the mine" in Pennsylvania..

So this works out to: $.032 / kwh

https://www.youtube.com/watch?v=TewWb8xmyzk

$.06 / kwh bagged and delivered (to Ontario) according to above video.. ($7.50 / 40 lb bag)

jhallenworld··on Nine US states are teaming up to accelerate the adoption of heat pumps
Interesting.. the same section banned any limitation on the importation of slaves... at least that clause had a sunset date. Both clauses were basically: "don't touch our cash cow".
jhallenworld··on Nine US states are teaming up to accelerate the adoption of heat pumps
It's more like 2.5 to 3x for good ICE cars (they are around 30% efficient- I think it's been going up over the years, in the past I assumed 15%):

https://en.wikipedia.org/wiki/Engine_efficiency#:~:text=in%2....

But anyway, the big issue is for electric cars fast chargers, more like $.48 / kwh..

For carbon emissions, the WTW (Well to wheel) efficiency is more important- they are about the same unfortunately (we need more solar):

https://ui.adsabs.harvard.edu/abs/2020SJRUE..24..669A/abstra....

jhallenworld··on Nine US states are teaming up to accelerate the adoption of heat pumps
It's a big problem for electric cars too... Here are the current prices per kwh for me in MA:

Electricity = $.26 / kwh

Propane (LPG) = .134 / kwh

Heating oil = .095 / kwh

Gasoline = .091 / kwh

Natural Gas = .082 / kwh

jhallenworld··on Nine US states are teaming up to accelerate the adoption of heat pumps
The fossil fuel capitalists are so very unhappy about this ban, they are still going on about it in the financial news. I have to say, I love it. Low natural gas prices directly benefit me, and isn't it our gas?

The price has certainly come down (look at henry hub chart..), but also winter has not been too cold..

They should ban oil exports next.. (for "national security")

Actually export tariffs would be better than outright bans.

jhallenworld··on Nine US states are teaming up to accelerate the adoption of heat pumps
Honda sold one for the US, but it didn't catch on or something:

Well I found this, they used the heat for hot water:

https://global.honda/en/newsroom/news/2012/p120925eng.html

jhallenworld··on What Is Wayland on Linux, and How Is It Different from X? (2023)
Here is a good history of X:

https://www.youtube.com/watch?v=R-N-fgKWYGU

jhallenworld··on New IBM LinuxONE 4 Express – Rack-mounted pre-configured Linux mainframe
Well you can run Hercules, the emulator. But you will then discover that the mainframe 3270 terminal user interface experience is terrible. A funny thing is this: there is a mainframe plug-in for Visual Studio Code. The idea is you do your COBOL development in Code, and only the plugin actually talks to the mainframe.

A decade ago there was an Eclipse version of this..

This guy is showing all three ways:

https://www.youtube.com/watch?v=_CYUYnKim7U

jhallenworld··on New IBM LinuxONE 4 Express – Rack-mounted pre-configured Linux mainframe
I think you're right it can't run the apps, but I see it's running z/VM as the hypervisor.
jhallenworld··on New IBM LinuxONE 4 Express – Rack-mounted pre-configured Linux mainframe
or, especially, software

It's a z-series mainframe and I don't doubt these reliability numbers.

The world's financial system runs on these mainframes. An undetected bit error at the federal reserve might cause IBM to appear in the news, in a bad way, like Boeing..

It will not have the fastest single-threaded performance, but that's not why you buy it.

The mainframe mindset: Of course each core is running at 100% all the time... I paid a lot for it, so I want my money's worth. z/OS is designed to make this feasible. Not sure how well that works in Linux.. but it's where the market is.

jhallenworld··on Show HN: Atopile – Design circuit boards with code
Why not use Verilog or SystemVerilog?

    module blinky
      (
      input v3v3,
      input gnd
      );

    wire led;

    wire led_r;

    rp2040 u1
      (
      .vcc (v3v3),
      .gnd (gnd),
      .gpioa15 (led)
      );

    resistor #(.VALUE("220"), .TOLERANCE("5%"), .PART("ERJH2CF1R10X"), .SIZE("1206")) r1
      (
      .a (led),
      .b (led_r)
      );

    led #(.PART("WP7113SURDK14V")) d1
      (
      .anode (v3v3),
      .cathode (led_r)
      );

   endmodule
Use Verilog parameters for all of the part information you might want, like links to digikey part number.. or bury them into modules with different names.

FWIW: Cadance "conceptHDL" is a schematic entry program which generates a Verilog netlist like this as its output (usually for board level simulation including ASICs and FPGAs). But if you're careful, Verilog could used directly as the input- the board-level schematic is pretty simple compared with the chip source code.

I'm sure there is a tool somewhere to convert this into an EDIF netlist for Kicad or whatever. [Icarus can do it: https://steveicarus.github.io/iverilog/targets/tgt-fpga.html ]

Also: this is not limited to digital: there is a variant of Verilog called Verilog-AMS specifically designed for analog simulation.

https://en.wikipedia.org/wiki/Verilog-AMS

In Verilog-AMS, you can define a simulation models of your components:

    module resistor
      (
      inout electrical a,
      inout electrical b
      );

    parameter real R = 1.0;

    analog
        V(a,b) <+ R * I(a,b);

    endmodule

    module capacitor
      (
      inout electrical p,
      inout electrical n
      );

    parameter real c = 0;

    analog
      I(p,n) <+ c*ddt(V(p, n));

    endmodule
So not only do you get a component, but you also can simulate the whole thing before fabrication to catch mistakes.
jhallenworld··on Show HN: Atopile – Design circuit boards with code
It should produce a schematic as one of its output products.. maybe use graphviz, see:

https://observablehq.com/@nturley/netlistsvg-how-to-draw-a-b...

HDL tools all do this.

jhallenworld··on Out-of-bounds read and write in the glibc's qsort()
I can imagine the future memcpy CVE: "arguments to memcpy to regions not previously allocated or after having been freed can potentially cause security issues. Therefore we propose that memcpy check its arguments against this new list of valid memory addresses that we are now going to keep around..."

So what I mean is: how much performance are we giving up with this "fix" for qsort?

jhallenworld··on 60-Bit Computing (2022)
Bitsavers has a bunch of competitive analysis documents from 1980s DEC that are interesting to read:

http://www.bitsavers.org/pdf/dec/competitiveAnalysis/

You can feel the desperation..

jhallenworld··on 60-Bit Computing (2022)
Bit serial made a lot of sense because the memory was often serial (drum memory or acoustic delay lines use in 1960s calculators).

>And yeah, I also wished DEC didn't kill the PDP-10 for the VAX, but that's another story.

The DEC-20 was 6x faster than VAX-11/780 on at least one benchmark (that I wrote when I had access to both in the 80s..). DEC-20 was a PDP-10 implemented in ECL, it was quite fast.

jhallenworld··on 60-Bit Computing (2022)
OS/8 was a single user OS (like RT11), so it often was used as a personal computer. It inspired CP/M.

6-bit chars were popular on this machine since you could fit two in one word, and uppercase only a thing. Strings in BASIC used 6-bit chars, but you could PRINT all ASCII (especially control characters) with a special PNT() function (only usable as a PRINT argument). If you look at the available OS/8 images, you'll find "business BASIC"- at least one change compared to regular OS/8 basic was support for 8-bit strings.

Floppies used 8-bit bytes. You wasted 4-bits out of every two for image files.

jhallenworld··on 60-Bit Computing (2022)
ASCII was often 7-bits on these machines, since you could efficiently pack 5 characters in one word.

But C used 9-bits for chars, for better compatibility between word and char pointers.

jhallenworld··on Car insurance in America is too cheap
So she was a pedestrian when she was hit (she's OK, but messed up two years of her life). This makes me wonder if it's worth owning some crappy car even if you never drive it, just for the privilege of having auto insurance...

Anyway, yes health covers it but they are first in the line getting reimbursed, even before the lawyer- which I think sucks, I mean what am I paying them for?

jhallenworld··on Car insurance in America is too cheap
Getting the umbrella is good, because during the process they review the rest of your insurance (at least they did for me).

>stay at home mom

I'm in the same situation, it sure would be nice. We do both have life insurance at least.

>Why do you say this instead of just relying on the liability coverage under your regular auto insurance?

To be careful. If you don't buy it, make absolutely sure that your own auto insurance covers it. [also people who don't own a car won't have auto insurance..]

← PreviousPage 8 of 34Next →