Hacker Newsnew | past | comments | ask | show | jobs | submit | jasomill's commentslogin

Funny you mention this, as I've written quite a bit of Python code that works just like this, typically in the form of an evaluator for some random proprietary language I've parsed into an AST in the form of a Python list or tuple.

Before you could assume...null pointer derefs will be trapped by the OS

Before when?

  Microsoft(R) MS-DOS(R) Version 6.22
               (C)Copyright Microsoft Corp 1981-1994.
  
  C:\TMP>type foo.c
  void main() {
      long q = 0;
      q = 0/q;
  }
  
  C:\TMP>cl /Od foo.c
  Microsoft (R) Optimizing Compiler Version 5.10
  Copyright (C) Microsoft Corp 1984, 1985, 1986, 1987, 1988. All rights reserved.
  
  [...]
  
  C:\TMP>foo

  run-time error R6003
  - integer divide by 0
  
  C:\TMP>type bar.c
  void main() {
      long far *p = 0;
      long q = 0;
      *p = 0;
      q = 0/q;
  }
  
  C:\TMP>cl /Od bar.c

  [...]

  C:\TMP>bar
(system hangs)

In DOS you always had to manage your expectations, not sure what you're trying to prove here?

I was, but my application was less fun: porting Perl code from Windows NT to MS-DOS to integrate with software that required direct hardware access to a particular model of SCSI card.

Worked great, and saved a bunch of time vs writing a VDD to enable direct hardware access from NTVDM or a miniport driver from scratch.

IIRC, the underlying problem was that none of the NT drivers for any of the cards we'd tested were able to reliably allocate enough sufficiently contiguous memory to read tapes with unusually large (multi-megabyte) block sizes.


To be fair, I've seen definitions of AI so broad that they'd probably include the root finder on my HP-15C.

Not so cheap if your hardware decoder only supports 8-bit color, which is a common limitation of H.264 decoders in particular.

Not sure what you’re asking.

You can get fullscreen video in a desktop browser by pressing F or clicking the fullscreen icon (broken rectangle) below the video.

You can get ad-free playback by paying for Premium or sometimes with an ad blocker.

Outside the browser, you can get both with yt-dlp, which also integrates into video players like mpv.


You can get ad-free, fullscreen video on mobile right away by opening it from a chat message preview. You also just get the full-screen video, no way to minimise it and see Youtube UI, no ads visible. I was just wondering how it works and can you simulate that on the desktop.

[Fullscreen icon in YouTube is double arrow, not broken rectangle.]

Now you need both a buggy HDCP 1.4 splitter and an HDCP 2.1 to 1.4 converter.

1000/40 is rather asymmetric and the fastest service available in my area.

Recent Xbox controllers support both Bluetooth and a proprietary protocol; Microsoft sells an optional dongle to use the latter on PC.

AFAIK, PlayStation wireless controllers are Bluetooth-only, but the DualSense (PS5) controllers use some proprietary extension not supported on Windows for haptic feedback over wireless that's sent via standard audio protocols over USB.


And you can repair an already-paired device by either holding down the power button for a few seconds or flipping the power switch on and off a few times, depending on the model.

My biggest annoyance with Apple devices is in software, that AFAIK there's no way to prevent macOS from pairing to any Apple Bluetooth device connected via USB, even if it's already paired with another device and you only intend to use it via USB.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: