HNHacker News
TopNewBestAskShowJobs

ratboy666

226 karma · joined May 17, 2013

submissionscomments
ratboy666··on The strategic use of titles to avoid overtime payments
I expect that, if given the title Director, the candidate has a P&L and makes a significant part of her income through making the P&L. Director should be "Manager of Managers" -- close to "Vice President"
ratboy666··on Ask HN: Why did BASIC use line numbers instead of a full screen editor?
Memory constraints. BASIC will run in 4 to 8 Kbyte (4000 to 8000) ROM. That budget was for editor, SAVE/LOAD,interpreter and overhead functions. The goal is to make the interpreter fast!

And, these were pre-IBM PC systems. (apple, radio shack 8 bit systems, many others).

ratboy666··on EV batteries alone could satisfy short-term grid storage demand as early as 2030
Thank you! At those prices, it begins to make sense. Man, the prices have fallen!
ratboy666··on EV batteries alone could satisfy short-term grid storage demand as early as 2030
The elephant in the room -- unfortunately, there cannot be enough batteries made to support this. That is why I invested in Tesla -- don't care about EVs, but the battery play is good! Backup power for personal/family use? I use a Firman generator - 20 litres of fuel per day of operation at load. (here, $30 Canadian). Since the generator was only $300 and load is 3000W, this is a much better deal for me. And... at the rates being bandied about here... if anyone EVERY offers, say, $1/KWh - That grosses me $70 per $30 of gas. I would take that incentive. Note that the generator would pay for itself every 10 days by my reckoning.. And the recycling of the motor is already a solved problem. So... $1/KWh is way too much. $0.50/KWh is also too much (and note that my gasoline pricing is around $1.50/litre at the pump -- $22.41 US for 20 liters ...

So the actual amount should be around 32 cents per KW/h... 50 cents work fine because that factors in "wear and tear" -- do those numbers work for batteries? Of course, buying electricity is 7 to 15 cents/KWh here.

I would want LiFePo4 for this application; at current rates, a 10KWh battery runs $10,000. From that, I determine that I can "just" buy much more effective gas/natural gas/propane burning generators. Something like the Generac 6551. Natural gas is .23/c3 or around $1 for one hour of 7000W operation... actually looking competitive with electricity grid rates (except wear&tear on the generator).

Note that I do have a hybrid car. So, not "anti-electric" by any means. I just don't think that enough batteries can be made for this application. Certainly NOT be 2030 (6 years? Oh really?)

ratboy666··on Microsoft returns to the Altair
Does this run kill-the-bit? (IOW, does anyone know if this is a cycle-accurate emulation?).

Happy enough with my Altair-Duino, which is (pretty much) cycle accurate -- maybe a bit faster than the real thing... (2.5Mhz, perhaps).

        ORG     100H
;

MCYC: LXI H,0014H ; 10

TOP: LXI B,8200H ; 10

TOP2: DCR C ; 5

        JNZ     TOP2            ; 10

        DCR     B               ;  5

        JNZ     TOP2            ; 10

        DCR     L               ;  5

        JNZ     TOP             ; 10

        RET
;

        END
This is a program that should execute in 5 seconds on a 2MHz 8080 -- pretty much 10,000,000 cycles (cycle times on the right).

As to CP/M... Microsoft did produce software for CP/M (8080 and/or Z80) -- Macro Assembler, Fortran, COBOL, BASIC and BASIC compiler and some applications. Spreadsheet, SORT, EDIT (a VERY limited implementation of TOPS-10 SOS -- no line moving, for example). If anyone has seen, or has a copy of the CP/M Microsoft SORT utility... please preserve that artifact.

ratboy666··on Quickly checking that a string belongs to a small set
In old-school Pascal, type alfa is packed array [1..10] of char

On the CDC 6600, word-size was 60 bits, and a character size of 6 bits -- so 10 characters in a 60 bit word. Then, compares become simple. The PDP-10 used 36 bit words and 6 bit encoding (ASCII space to underscore subtract 32, so space is 0, A is 33, _ is 63). Not so nice: "set of char" takes 64 bits -- and only 60 bits are available (using DEC SIXBIT encoding, or CDC DISPLAYCODE https://en-academic.com/dic.nsf/enwiki/11602432). I guess we put that down to -- can't win them all. These days, I would consider 7 bit, 18 characters in 128 bits, and "set of char" in 128 bits. Back then, 36 bits would hold 6 characters... and that could be a filename. Compare in one instruction on the DEC-10. Thus 6.3 names (filename, extension, and 18 more bits in 2 words).

ratboy666··on Password Requirements: Myths and Madness
Please do not store the password... store a hash.
ratboy666··on The human cost of neurotechnology failure
All I need to do is provide a heroin user fentanyl. We have tried heroin from the government, but the users want fentanyl. And, of course, the "black market" will not limit the amount the user gets.

Now, if you provide a "safe injection/usage site", that attracts the "black market" dealers. Seemingly, that also attracts other "undesired". Take, for example, the problem of homelessness where I live. It is actually difficult to remain unhoused. But, the care demands "no alcohol", "no drugs", "no violence". And a lot of customers do not like those terms and rather live on the street.

Government to blame? Do we not live in a democracy?

ratboy666··on NASA finds super-emitters of methane
Oh, really?

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

https://www.nytimes.com/2018/09/21/climate/sweden-garbage-us...

ratboy666··on Nushell: Introduction to a new kind of shell
But... Bash (sh) is not meant to parse text!

Bash (sh) is glue. awk can parse text. As can SNOBOL4 if you REALLY want to go crazy. Or sed. Math is done by expr, dc and bc.

ratboy666··on Nushell: Introduction to a new kind of shell
This... yq eats yaml. And this is all I need to know (really). I don't know yaml. I don't WANT to know yaml.

Two letter command which I can remember, in the same way that I know jq. And, as a short-form jo. I would not use jo to eat json. I do think that yq is "misnamed" slightly, in that there is no yo command.

(note that I do have yq installed, but not nushell or PowerShell).

shell is glue, not oop -- json is an object notation, converted to stringyness. Which makes for oop->shell. Since "objects" are programmer-think, this should not be the primary command interface. People (not programmers) recognize this, and thus PowerShell is not used by "non-programmers". Ok, you want something above bash (sh, shell), for more programming structure? This is why the #! construct is exec() is so important. That lets you use... um awk, sh, (and should support PowerShell -- not sure). Even C (with tiny-c). I would go with javascript, myself, because it fits with json, and thus jq and jo in the eco-system.

Now, for a criticism of yq -- jq is 30K for a front-end and 350K (or so) for a library. jo is 120K, yq is (gulp) 12MB. Ok, I have the disk space. And it is GO, so ok. Compared with the other GO programs I use commonly: minio (100MB), mcli (mc, 20MB), doctl (20MB), it isn't bad at all. But, I guess that is what GO demands...

Can I teach "functional shell"? Frankly, no. I can get through simple shell in a semester.

ratboy666··on Activist glues his head to glass covering 'Girl with a Pearl Earring' painting
No, the serious scientists did not tell everybody in the world. I would challenge that assertion. As to "time for a change in strategy". Sure, why not. Turn off the lights and go home. Remember the quote from the attempted Sunflowers incident:

"Is it worth more than food? Worth more than justice?" ... "are you more concerned about the protection of a painting? Or the protection of our planet and people? The cost of living crisis is part of the oil crisis. Fuel is unaffordable to millions of cold hungry families. They can't even afford to heat a tin of soup". I will let you think on this. "No new oil" is the supposed solution to unaffordable fuel. And cold.

Sure, no new oil. I guess it is an oil painting. The good news? Maybe they are beginning to learn to not make statements.

ratboy666··on Scots research finds Atlantic plankton all but wiped out
Oh, really -

Phytoplankton bloom with 700000 cells per liter density is visible to the naked eye.

This gives the colour (red, green, or brown) on the sea surface. This means that the satellite maps showing visible blooms may directly repudiate the article. Or not... Not my field of expertise.

ratboy666··on CP/M is really open-source now
CP/M does not use forward slash as the CLI modifier.

Examples - from the standard CP/M utilities (CP/M 2.2)

ASM FILE.ABC

.ABC encodes options. Source file for ASM is always .ASM

STAT uses $ - STAT FILE $R/O sets file to read-only PIP A:=B:[G0] - PIP (copy, "peripheral interchange program"), uses [ for options, as do later Digital Research programs (like the linker). Basically /no/ Digital Research use of / as option separator.

Microsoft used / - for example the command line L80 FILE,FILE/N/E - which means link FILE.REL (relocatable), naming the output FILE.COM, and link and exit.

CP/M 2.2 introduced "user areas" - a disk could be divided into 16 user areas (USER 0 to USER 15). There was no "searching" until CP/M 3. CP/NET (Digital Research networking) used [ as a separator. Examples (from CP/NET documentation)

A>RMAC SNIOS A>LINK SNIOS[OS]

LOGIN {password}{[mstrID]}

LOGIN secret[01]

would log in to server 01, with password secret

NETWORK B:=D:[F]

assigned B: to server 0F, drive D:

The lack of directories was not such a loss, as the maximum disk size for CP/M 2.2 was 8MB. Remote drives with CP/NET could be much larger (I have used up to 1TB).

ratboy666··on Internet Filtering in Canada: Rogers' NHL Blocking Order
Godwin's law prevails.
ratboy666··on Internet Filtering in Canada: Rogers' NHL Blocking Order
Malicious compliance.

I imagine that Teksavvy, et. al. would not do it, but the point of the exploit is that the lists are dynamic, supplied by the NHL/ESPN/whoever. Get the provider to make a list that blocks everything.

Could be as simple as creating a web site posting that there is an intention to stream a game. Just a list: "I hear that you can watch the upcoming Leafs game on IP a.b.c.d". Let NHL/ESPN/whoever scrape it. Start with providing nothing but "bad actors". Spring the trap by flooding with sites you desire to be blocked, you know, just before the next playoffs.

This is pretty much the same strategy used to poison bittorrent feeds. More effective, though. In the case of bittorrent, only really popular torrents can be poisoned. In this case, there are a very limited number of targets that need to be attacked.

ratboy666··on Internet drama in Canada
I use TekSavvy as an Internet Provider (in Canada).

Bell (the phone provider) REALLY wants me to "go optical". For speed... But - Bell (the phone provider) is forced to share the copper. They do NOT share the optical! If I "go optical", they rip up the copper, and force me to use Bell or the cable company.

TekSavvy would be shut out (actually, they can use cable). I refuse to give business to the cable company (for other reasons).

So - vDSL all the way! Fortunately 25/5 mbps is sufficient for my uses.

Why TekSavvy? (1) they do NOT block ports (2) they can provide static IPv4 addresses -- so REAL INTERNET.

Something I do NOT get from either phone or cable companies.

ratboy666··on IBM 5150 POST – 'Manufacturing Test' mode
It was published, comments and all. Copyright.
ratboy666··on Twitter board adopts poison pill after Musk’s $43B bid to buy company
Remember that this IS Musk; not very predictable. But I'm going to try... Since Musk has stated that this was NOT to make money, I imagine that triggering the poison pill, and THEN dumping the shares would tank the stock. Musk did say "final offer, and if rejected, re-evaluate". The poison pill trigger? Not something talked about.

I hold some shares of TWTR, and would continue. For the lulz.

ratboy666··on Restored F80 compiler code for CP/M
Microsoft FORTRAN-80 is an implementation of FORTRAN 66. The "shortcomings" are:

- No COMPLEX type - Specification statements must be ordered FUNCTION/type/COMMON/EQUIVALENCE/DATA/statement functions - differing storage requirement for types

then again, even MATLAB (for example) doesn't need COMPLEX

ratboy666··on The State of Fortran
But, back in the day, if you wanted to add functions to MATLAB, you would add them in FORTRAN 66, and rebuild the MATLAB interpreter.

Microsoft BASIC-80 (around the same time) was written in assembler. You also don't write in assembler when using BASIC-80. But, BASIC-80 would be extended by assembler, in the same way that MATLAB would be extended by FORTRAN.

ratboy666··on Hand-optimizing the TCC code generator
But, this is TCC's strength. It IS a simple one-shot, one-pass compiler that does not advance regalloc or optimization! With a single-file code generator that has already been ported. Goes straight from C source to executable binary in memory.

The main problem is that TCC has been "extended" to take on other roles (like linking ELF).

ratboy666··on Hand-optimizing the TCC code generator
Sure -- the compiler is small enough to include -- and fast enough. Bellard did an experiment where TCC was used to compile the Linux kernel on boot. Remarkable.

Yes, the source may be verbose. But, the API exposed would be C, and most systems have a C FFI.

Instead of TCC, you may wish to consider Quick JS (Bellard's Javascript interpreter).

The reason I use TCC is to validate C code. TCC evaluates arguments left to right, whereas GCC does right to left...

ratboy666··on The State of Fortran
But... Matlab was originally written in FORTRAN ("easy access to... LINPACK and EISPACK..."). Written by Cleve Moler, distributed by Jim Kweeder. May 25, 1982. 7852 lines of FORTRAN 66 (for the version I have).

"With proper use of overlays, it is possible run the system on a minicomputer with only 32K bytes of memory." -- Cleve Moler

Fred Weigel

ratboy666··on Tell HN: Gnome on Wayland Is Amazing
Removing the "cross application snooping" is X11 is.. difficult. In a sense, that is equivalent to removing piping and redirection from shell -- "for security".

Now, many people don't mind, but I certainly mind. That is why I still use X11. Definition of trust... you trust what you must. "Operating systems have to be less trusting". But my Operating System must trust me. I give it no choice in the matter. My Operating System must not override my Trust decisions.

ratboy666··on C Isn't a Programming Language Anymore
C descriptions of the OS interface API...

Ok - I get that. But, there is a system call interface. int 0x80, syscall.

Now, these can be wrapped, and the result exposed in a completely different way. But that is the definition. If its "C" on one side and "C" on the other... well, ok then! I though Linux had vDSOs to allow direct "ABI" calls for performance reasons.... utilizing that will force a certain "C-ish" look. In turn, that can be wrapped. None of this changes quickly.

Heck. CP/M-80 had "CALL 5" with registers a certain way. Wasn't "C" by any stretch!

Because the C (POSIX, mostly) "API" is stable and available, we tend to use it. Wasn't always the case -- after all, FORTRAN I/O was all the rage back in the 60s (cf SNOBOL4).

If (whatever) programming system wants to avail itself of the C infrastructure, it is certainly free to do so. Stop the endless whinging about C! Why C? It is the only language in its class that works from Z80 to my Thinkpad.

ratboy666··on Typography is impossible (2016)
"Reason" about it -- typography is art. There are many issues that started around when GUI word processing started. For example -- the "spring space" is simply gone. As is the "set indent to current (horizontal and vertical)". Kerning tables are pretty much gone (we used to have kerning by size/font font/combinations. This has not been simple. But typography is, basically, dead.

I have given up "teaching typography".

ratboy666··on My transition from Windows to Linux in an anti-customer age
So... what I say... if you want to use Linux, go ahead. But, know WHAT and WHY you are doing this. If you simply say "it's not Windows" -- not good enough. Yes, Linux is not Windows. It is ALSO not a Mac OS/X. So, why are you attempting, "many times" to adopt Linux? I honestly have no idea what "Radarr" is, or why on earth I would want it. If I did care, I would have a reason to use Windows. As it is, I don't. My use case is a good and reliable Posix platform, with good tooling. That is provided by Linux -- indeed, I use Fedora. Been that way for over 25 years. I need Java, but not .NET. My use cases... not yours.

I don't care about "package managers" Usenet is web for me (google groups), CLI is not an issue; indeed I prefer it, given my history. I find Windows UX/UI to be extremely difficult. I suggest that you do NOT consider Linux to be a competitor to Windows. It really isn't. Windows had been forced to run Linux. In full compatibility. This is supported by Microsoft -- unlike Wine is is somewhat there. If I needed Windows, I would run Windows, and use WSL.

The odd thing here is that Windows "blinked first". The existence of WSL means Linux has won. If I sent you a Linux binary, I would tell you to install WSL and then just run it. I can also send you JVM stuff to run. .NET? Haven't needed to bother with it.

Have I tried many times to adopt Windows? Frankly, no. If it doesn't work with Fedora, I generally just don't care, and move on.

FredW

ratboy666··on Delta CEO wants U.S. to put unruly passengers on 'no-fly' list
You want to predict my future behaviour? In other words, read my mind? So, I cannot fly because you, without any other knowledge, are afraid of me.

That is why I requested being put on the list. I encourage others to do the same. Let Delta stew in it.

ratboy666··on Delta CEO wants U.S. to put unruly passengers on 'no-fly' list
It is interesting that Delta should want this. I want to be put on the 'no-fly' list. Delta should create a portal for this. I want on, and I can nominate many others. Indeed, I think that Delta's business should be tanked.

Of course, I attempted to get added to the no-fly list, as it seems quite special. Unfortunately, it appears that this is not possible (I may try phoning it in later).

https://www.delta.com/content/www/en_US/system-unavailable1....

It would be sad if this is restricted to unruly passengers only.

← PreviousPage 2 of 7Next →