Tuesday, June 03, 2025

Nvidia bitches

NVIDIA bitches need servants, not dreamers. There is no time in the interview to discuss your thoughts or ideas or even tell anecdotes about previous interviews with other NVIDIA bitches. Bitches come per-instructed about the process of interviewing. After the couple of questions they would straight away jump to Hacker-fucking-Rank, another POS website created by a code-coolie. This asshole in single-handedly responsible for destroying the world as the current NVIDIA CEO who says we have reached a tipping point. This "genius" would be considered in  the history of humanity as someone who took the first step in destroying his own race.

Saturday, May 31, 2025

classic problems in CS: producer, consumer, event driven programming, blocking vs non blocking, parallel programming, synchronous ipc bad etc...

Race conditions, deadlocks, resource hogging are the kind of problems you will have to deal with in production issue debugging.

 

1. Producer–Consumer Problem

  • What: One or more producers generate data, and one or more consumers process it.

  • Why classic: It models pipelines and buffers in OS, I/O, and multithreading.

  • Challenge: Managing a shared buffer with thread safety, avoiding deadlocks or race conditions.

  • Modern Usage: Logging systems, data ingestion pipelines, concurrent queues, asyncio tasks.


 

2. Event-Driven Programming

  • What: Program flow controlled by events like I/O, signals, or user actions.

  • Examples: GUI frameworks, network servers (e.g., Node.js), embedded systems.

  • Key Idea: Handlers (callbacks) respond to events asynchronously.

  • Pitfall: Callback hell, hard-to-debug flow.

    3. Blocking vs Non-Blocking I/O


    BlockingNon-blocking
    ThreadWaits (halts)Continues immediately
    RiskFreezes UI / threadNeeds polling or async model
    UseSimple scriptsReal-time systems, UI, servers

4. Parallel Programming

  • What: Running multiple computations simultaneously (threads or processes).

  • Goal: Speed up workloads like ML training, video processing, simulations.

  • Challenge: Thread safety, synchronization, avoiding contention.

  • In Python: GIL limits threading → use multiprocessing for true parallelism.

    5. Synchronous IPC: Problems

  • MsgReceive() in QNX or similar synchronous IPC:

    • Blocks caller until a message arrives.

    • Problem: If a thread is blocked on MsgReceive(), it can’t respond to new events → UI hangs.

    • Fix: Use async messaging, polling with timeout, or delegate to worker th

  • 6. Deadlocks, Starvation, and Race Conditions

  • Deadlock: Two threads waiting on each other → system freeze.

  • Starvation: One thread never gets scheduled.

  • Race Condition: Two threads modifying shared data without sync → nondeterministic bugs.

 

Friday, May 09, 2025

Major Types of Machine Learning Tasks

 In machine learning, especially classification:? are there other kinds of machine learning?

Q: In machine learning, especially classification:? are there other kinds of machine learning?

Major Types of Machine Learning Tasks

TypeDescriptionExample Use Case
1. ClassificationPredict discrete labels (categories)Handwritten digit recognition (0–9)
2. RegressionPredict continuous valuesPredict house price from features
3. ClusteringGroup similar data without labelsCustomer segmentation
4. Dimensionality ReductionCompress data while preserving structurePCA for visualization or compression
5. Anomaly DetectionFind rare or unusual patternsCredit card fraud detection
6. Reinforcement LearningLearn through interaction with an environmentTraining a robot or game AI
7. Generative ModelingCreate new data like images, text, audioText generation, image synthesis