frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

zearch: regular expression searching on grammar-compressed text

https://pevalme.github.io/zearch/graphs/index.html
1•1vuio0pswjnm7•2h ago

Comments

1vuio0pswjnm7•2h ago
.

   cd zearch-master/
   ed Makefile <<__GGG__
   11c
   CC = gcc
   .
   4,6c
   CFLAGS = -static -s -I/usr/include -fcommon -O3 -march=native -flto -mtune=native
   # CFLAGS = -fcommon -flto -DNDEBUG -ggdb -fno-inline-functions
   LFLAGS = -L/usr/local/lib/ /usr/lib/libfa.a
   .
   w
   q
   __GGG__


   ed main.c <<__HHH__
   750,751c
   if(mode=='q'){ret=run_boolean_zearch(minimize,argv[argc-1],argv[argc-2]);exit(ret);}else run_zearch(minimize,argv[argc-1],argv[argc-2]);
   .
   730,733c
   if(argc==4)if(argv[1][0]=='-')mode=argv[1][1];else mode='l';
   .
   707,728c
   if(argc!=3&&argc!=4)help();
   .
   703c
   int help(){
   fputs("Usage: zearch [OPTION] PATTERN RE-PAIR FILE\n",stderr);
   fputs("  -c: prints only a count of selected lines in RE-PAIR FILE\n",stderr);
   fputs("  -q: suppress all normal output\n",stderr);
   exit(0);
   }
   .
   525a
   int help();
   if(slp==NULL)help();
   .
   501c
   ret=1;
   .
   491c
   ret=0;
   .
   482c
   ret=0;
   .
   430a
   int help();
   if(slp==NULL)help();
   .
   419c
   if(mode=='c')printf("%d\n",ret+counting_overflows*COUNTER_TOP);
   .
   350c
   if(mode!='c'&&mode!='q'){
   .
   238,253d
   w
   q
   __HHH__

   ed nfa.c <<__III__
   103,104c
   extern unsigned int num_e_l;
   extern unsigned int num_e_r;
   .
   diff -re zearch-master/src/stack.c zearch-master.new/src/stack.c
   56c
   s->data = (unsigned int*)realloc(s->data, sizeof(unsigned int) * s->size);
   .
   53c
   __attribute__((always_inline)) inline void stack_push(STACK *s, unsigned int n){
   .
   42,43c
   __attribute__((always_inline)) inline unsigned int stack_pop(STACK *s){
   unsigned int ret;
   .
   37c
   posix_memalign((void **)&s->data, 64, STACK_SIZE * sizeof(unsigned int));
   .
   w
   q
   __III__

   ed stack.h <<__JJJ__
   65c
   void stack_push(STACK *s, unsigned int n);
   .
   55c
   unsigned int stack_pop(STACK *s);
   .
   36c
   unsigned int *data;
   .
   5c
   * Each element is a unsigned int.
   .
   w
   q
   __JJJ__

Cara Membatalkan Pengajuan BantuSaku

1•Sambalado•24s ago•0 comments

DHS Posts Video Featuring Song Popular with Nazi Creators

https://gizmodo.com/dhs-little-dark-age-nazi-video-2000676359
1•nobody9999•7m ago•0 comments

Hugh Grant spotted in Somerset town buying a sausage roll

https://www.somersetlive.co.uk/news/somerset-news/hugh-grant-spotted-somerset-town-5295411
1•austinallegro•9m ago•0 comments

Language Modeling with Hierarchical Reasoning Models: Lessons from 1M Parameters

https://williamthurston.com/ml/language-models/transformers/2025/10/25/language-modeling-with-hie...
1•jhspaybar•12m ago•0 comments

GameStop Declares Console Wars Over

https://twitter.com/gamestop/status/1982213786221109263
2•avonmach•21m ago•0 comments

Quick Dungeon Crawler Update 3.5.0: New Passives, CRIT DMG Nerf

https://dungeon.werkstattl.com/
1•logTom•23m ago•1 comments

Jan van Eijk's wise lessons and advice

https://www.hightechinstitute.nl/jan-van-eijk-wise-lessons/
1•o4c•27m ago•0 comments

How I Used Lies About a Cartoon to Prove History Is Meaningless on the Internet (2016)

https://medium.com/pcmag-access/how-i-used-lies-about-a-cartoon-to-prove-history-is-meaningless-o...
1•jfil•29m ago•0 comments

Show HN: Zoto – low-level audio playback in Zig

https://github.com/braheezy/zoto
2•braheezy•37m ago•0 comments

Node.js Hackathon Starter still get updates in 2025

https://github.com/sahat/hackathon-starter
3•sawirricardo•39m ago•0 comments

ALA and Metformin Synergistically Ameliorate T2 Diabetes Cognitive Dysfunction

https://www.mdpi.com/2079-7737/14/7/885
3•walterbell•41m ago•0 comments

TinyCorp: Nvidia GPU on Apple Silicon over USB4 is ready to try

https://xcancel.com/__tinygrad__/status/1980082660920918045
1•gsf_emergency_4•45m ago•0 comments

Auto Dark Mode for Windows

https://github.com/AutoDarkMode/Windows-Auto-Night-Mode
2•hermitsings•47m ago•0 comments

Tariffs weigh on US manufacturing as activity contracts for 7th straight month

https://www.straitstimes.com/business/economy/tariffs-weigh-on-us-manufacturing-in-september-as-a...
2•testrun•48m ago•0 comments

Microsoft disables File Explorer preview for downloaded files by default

https://www.windowslatest.com/2025/10/26/microsoft-admits-file-explorer-preview-pane-wont-work-in...
5•kirenida•48m ago•1 comments

Show HN: Piping in and Out of Emacs

https://github.com/agzam/mx-piper
2•iLemming•49m ago•0 comments

TinyCorp Runs Nvidia GPU Off Apple Silicon Mac via USB4 dock

https://www.tomshardware.com/pc-components/gpus/tiny-corp-successfully-runs-an-nvidia-gpu-on-arm-...
4•gsf_emergency_4•51m ago•0 comments

Association between microplastics and depressive symptoms in college students

https://www.sciencedirect.com/science/article/pii/S0147651325004786
1•donsupreme•54m ago•0 comments

Dov Charney on Vice (Former American Apparel CEO) [video]

https://www.youtube.com/watch?v=CG_T1fY3KTk
3•artur_makly•54m ago•1 comments

Tsdown – The Elegant Bundler for Libraries

https://tsdown.dev/
2•jcbhmr•1h ago•0 comments

Rescuing Democracy from the Quiet Rule of AI

https://www.noemamag.com/rescuing-democracy-from-the-quiet-rule-of-ai/
4•devonnull•1h ago•0 comments

Ondol

https://en.wikipedia.org/wiki/Ondol
5•JumpCrisscross•1h ago•0 comments

GenAI Image Editing Showdown

https://genai-showdown.specr.net/
3•rzk•1h ago•0 comments

How efficient is RocksDB for IO-bound, point-query workloads?

http://smalldatum.blogspot.com/2025/10/how-efficient-is-rocksdb-for-io-bound.html
1•loeg•2h ago•0 comments

Periodic Advertising with Responses (PAwR): Bidirectional Bluetooth Advertising

https://novelbits.io/periodic-advertising-with-responses-pawr/
2•latchkey•2h ago•0 comments

Network Scanner script to automate Adblock rules

https://github.com/ryanbr/network-scanner
3•mp3geek•2h ago•0 comments

PCB Edge USB C Connector Library

https://github.com/AnasMalas/pcb-edge-usb-c
26•walterbell•2h ago•12 comments

AI models may be developing their own 'survival drive', researchers say

https://www.theguardian.com/technology/2025/oct/25/ai-models-may-be-developing-their-own-survival...
1•pseudolus•2h ago•2 comments

Creative neglect: What about the apps in Apple?

https://sixcolors.com/post/2025/10/creative-neglect-what-about-the-apps-in-apple/
2•CharlesW•2h ago•0 comments

Show HN: I made a site to replace emdashes and ornate AI characters from text

https://removeemdash.org
1•ryanmerket•2h ago•0 comments