Posts

AAA

Last edited: August 8, 2025

AAAI Talk Contacts

Last edited: August 8, 2025

AAAI2024 Index

Last edited: August 8, 2025
LocaleSpeakerTopic + Link
W3PHI-AIElizabeth BroyckiAI Healthcare Safety
W3PHI-AIJeff ClarkPatient Risk Prediction
W3PHI-AIYasmine and Emily!Abulance Trajectories
W3PHI-AISimeon AllmendingerDiffusion Laproscopic Surgeries
W3PHI-AIAndrea BorghesiClinical Skin Disease Image Generation
W3PHI-AIHossein JafariniaMultiple Instance Learning
W3PHI-AIThomas KannampallilAI Medicine
W3PHI-AISoumadeep SahaDOST
W3PHI-AIDimitris SpathisMultimodal AI for Real-World Signals
W3PHI-AIWilliam BoltonMedical Knowledge Extraction
W3PHI-AIPrajwal PanzadeMedBlindTuner
W3PHI-AIHita KambhamettuMedical Dialogue Generation
W3PHI-AIAmarpal SahotaParkingson’s Classification with EEG
W3PHI-AIYidou WengBaysian Networks for Healthcare
W3PHI-AICheng HuangMulti-LSTM for Clinical Report Generation
W3PHI-AIRickard StureborgHierarchical Multi-Label Clsf. for Vaccine
W3PHI-AIMbithe NzomoSemantic Health Risk Prediction

Talk Contact

AAAI Talk Contacts

About

Last edited: August 8, 2025

Welcome to the personal site of Houjun “Jack” Liu.

I’m on the blaggosphere as u/jemoka and @jemoka.


Who’s this guy?

I am a human interested in linguistic analysis, NLP, and user interfaces. I think AGI & Emacs are cool. I run Shabang, do research in NLP and model-based RL, and am working for TalkBank on the intersection between speech and language.

I’m currently doing my undergrad at Stanford, where I write some code for Stanza, a NLP package for many human languages, and a rover that we are sending to Antarctica.

Absolute Value Function

Last edited: August 8, 2025

Here’s a fun implementation of absolute value.

long abs_value(long num) {
    long sign = num >> (sizeof(long)*CHAR_BIT - 1); // so you only get all 1s or all 0s

    return (num ^ sign) - sign; // sign is either -1 or 0. So, if num is non-negative
                                // num^sign is not going to do anything (as 0^0 = 0, 0^1 = 1).
                                // If num negative, num^sign is going to flip the bit AND subtract
                                // negative on (i.e. add one)
}