HackerTrans
TopNewTrendsCommentsPastAskShowJobs

moogly

2,916 karmajoined 13 ปีที่แล้ว

Submissions

Politicians are being sold AI-powered 'digital fighters'

nationalobserver.com
2 points·by moogly·4 เดือนที่ผ่านมา·0 comments

comments

moogly
·เมื่อวานซืน·discuss
A minor version bump? Exciting times we live in.
moogly
·4 วันที่ผ่านมา·discuss
On the same day they release the new Dark Ages DLC. The game industry continues to be brutal.
moogly
·5 วันที่ผ่านมา·discuss
No one likes JD Vance though.
moogly
·5 วันที่ผ่านมา·discuss
Who is this for? No one wants this. Didn't they learn this with their browser?
moogly
·9 วันที่ผ่านมา·discuss
Sure. No need for --(experimental)-strip-types since I-forget-which-version, but I use Node.js 24.17 here.

  // ---- dev-ts-resolve.js
  export async function resolve(specifier, context, nextResolve) {
    try {
      return await nextResolve(specifier, context);
    } catch (err) {
      const isRelative = specifier.startsWith('./')
        || specifier.startsWith('../')
        || specifier.startsWith('/')
        || specifier.startsWith('file:');
      if (err?.code === 'ERR_MODULE_NOT_FOUND' && isRelative && specifier.endsWith('.js')) {
        return nextResolve(`${specifier.slice(0, -3)}.ts`, context);
      }
  
      throw err;
    }
  }
  // ---- dev-loader.js
  import { register } from 'node:module';
  
  register('./dev-ts-resolve.js', import.meta.url);
  // ----
usage:

  node --import ./dev-loader.js --watch-path=./src
moogly
·9 วันที่ผ่านมา·discuss
I definitely started out typing out the plural, but thought I should temper my words a bit for some reason.
moogly
·9 วันที่ผ่านมา·discuss
I don't doubt there are some, but GP made it sound like every European company and institution is working feverishly on it, which just cannot be true.
moogly
·9 วันที่ผ่านมา·discuss
I transpile for prod, but use --strip-types when running in dev, and all I had to do was to make a 10-line ESM register hook that rewrites .js to .ts if the .js import fails, and then a one-liner import register trampoline script. Not sure I'd do that in prod, but works fine in dev at least.

This way I could just use node --watch instead of tsx or nodemon.
moogly
·9 วันที่ผ่านมา·discuss
I call bullshit on the "very quickly" part there. It'll take a decade to phase out. And some don't seem interested at all (my employer for instance).
moogly
·13 วันที่ผ่านมา·discuss
Far more ludicrous, that is.
moogly
·15 วันที่ผ่านมา·discuss
This is just the same insane Effective Altruist slop we've heard before from the likes of SBF, et. al. Completely divorced from reality.

The "Abundist" movement is already dead.
moogly
·17 วันที่ผ่านมา·discuss
Hmm, is this a thing for enterprise accounts too? My employer has gone all-in on Claude, but if I get a pop-up that requires me to give my ugly mug to a literal cardinal enemy of the human race Peter Thiel, then I will have to seriously consider switching jobs, because I have some of them silly principles.
moogly
·19 วันที่ผ่านมา·discuss
Targeting and building Tauri apps for Wayland, specifically, is a massive headache due to assorted webkitgtk bundling/incompatibility madness.
moogly
·20 วันที่ผ่านมา·discuss
Heh, are the other sections dishonest, then? Yuck.
moogly
·21 วันที่ผ่านมา·discuss
Israeli trust in Trump has already plummeted[1].

[1]: https://www.timesofisrael.com/poll-71-of-israelis-dont-trust...
moogly
·21 วันที่ผ่านมา·discuss
Of course it is. It's literally the first provision in the MoU.
moogly
·21 วันที่ผ่านมา·discuss
[flagged]
moogly
·22 วันที่ผ่านมา·discuss
Yes but I would say one trumps the other.
moogly
·22 วันที่ผ่านมา·discuss
It's not 2004 anymore.
moogly
·22 วันที่ผ่านมา·discuss
> The technology is so unbelievably safe and efficient these days

I think you mean unbelievably expensive and takes an eternity to build outside of China and Korea.