Friday, March 13, 2026

With the fall of Windows and the rise of Linux, Computer Science is gradually crawling back to its most rightful community - engineers, scientists, physicists, mathematicians...


1. The “Windows era” of computing

During the dominance of Microsoft Windows in the 1990s–2000s, personal computing became mass-market consumer technology. The focus shifted toward:

  • Ease of use

  • Graphical interfaces

  • Office productivity

  • Gaming and consumer software

Companies like Microsoft built ecosystems aimed at millions of everyday users, not primarily scientists or engineers.

As a result, a large part of software development became application programming and enterprise IT, rather than deep systems engineering or scientific computing.

2. Linux and the return of engineering culture

The rise of Linux—started by Linus Torvalds—brought back a culture closer to traditional engineering and scientific computing:

  • Open source collaboration

  • Systems-level programming

  • High-performance computing

  • Research computing environments

Today, Linux dominates areas like:

  • Supercomputers (almost all of them run Linux)

  • Scientific computing clusters

  • Cloud infrastructure

  • AI/ML systems

Even platforms like Google, Amazon, and Meta Platforms run their infrastructure largely on Linux-based systems.

3. The deeper historical perspective

Originally, computer science was indeed a scientific and engineering discipline:

  • Numerical simulations

  • Physics modeling

  • Aerospace computing

  • Mathematical computation

Think of fields like:

  • Computational Physics

  • Computational Fluid Dynamics

  • Scientific Computing

My own interests—like studying OpenFOAM, Mantaflow, GPU programming, simulation, and Julia programming language—fit exactly into this tradition.

4. What is really happening

A better description might be:

Consumer computing and engineering computing are diverging again.

  • Consumer layer → mobile apps, web, AI tools

  • Engineering layer → Linux, HPC, simulation, GPUs

And the second layer is increasingly driven by engineers, physicists, and mathematicians, especially in areas like:

  • simulation

  • AI

  • computational science

  • scientific visualization

Exactly the ecosystem I am exploring with OpenGL, Mantaflow, OpenFOAM, Julia, etc

💡 A deeper observation:

The biggest shift is not Windows → Linux.

It is “Software as product” → “Computation as science and infrastructure.”

That shift naturally brings computer science closer again to physics, mathematics, and engineering.

Thursday, March 12, 2026

From My Computer to This PC - you will own nothing and be happy - the rise and fall of Windows PC...


1. The Era of “My Computer” (1980s–2000s)

The early PC era was about personal ownership and control.

Companies like

  • Microsoft

  • IBM

  • Intel

created a system where:

  • You bought hardware

  • You installed software locally

  • Your files lived on your machine

Operating systems like:

  • Windows 95

  • Windows XP

reinforced the concept of “My Computer.”

You had:

  • Local control

  • Offline capability

  • Permanent ownership of software licenses

This was the golden age of personal computing sovereignty.

2. The Shift Begins (2010s)

The model started changing.

Major shifts:

Cloud Computing

Platforms like:

  • Microsoft Azure

  • Google Drive

  • Dropbox

moved data from personal machines to remote servers.

Software Subscriptions

Traditional purchase → subscription model

Example:

  • Microsoft Office → Microsoft 365

You no longer own the software — you rent it.

3. The Rise of Platform Lock-In

Modern ecosystems increasingly control the user environment.

Examples:

  • Windows 11 requiring Microsoft accounts

  • Cloud-based authentication

  • Telemetry and data collection

The PC becomes less independent and more connected to corporate infrastructure.

4. The New Model: “Your Computer Is a Terminal”

The trend now is toward:

  • Cloud desktops

  • Streaming applications

  • Web-based software

Examples:

  • Windows 365 (Cloud PC)

  • Google ChromeOS

In these systems:

  • Your apps run in the cloud

  • Your data lives on company servers

  • Your device becomes just an access terminal

5. The Counter-Movement

Many technologists push back with open and local computing.

Alternatives include:

  • Linux

  • FreeCAD

  • Blender

These emphasize:

  • Local ownership

  • Open source transparency

  • Offline capability

Interestingly, my own interest in FreeCAD, OpenGL, and simulation sits squarely in this “sovereign computing” movement.

6. The Big Question

The future may split into two computing worlds:

Consumer world

  • Cloud apps

  • Subscriptions

  • Locked ecosystems

Engineering / research world

  • Local computing power

  • Open software

  • Full system control

High-end engineering (CFD, simulation, graphics) still needs local compute sovereignty.

In short:

The PC is evolving from “my computer” → “their platform.”

But in domains like simulation, graphics, and scientific computing, the traditional power-user PC is far from dead.

Sunday, March 8, 2026

Usefulness of Julia in engineering syllabus - we must include it in the engineering curriculum...

 Hey guys... today I want to write about the basic hindrance of engineering college studies. You know the problem - modern-day industries want engineers who can code, who are right at the juncture of engineering and software. Engineering education is beyond just a few theories, complex mathematical formulae, and examinations to test you on such areas. It's also about visualizing and simulating the results of such theories.

So far, the system in engineering colleges is somewhat like

  • MATLAB for modeling

  • Python for data

  • C++ for performance

  • Simulink for block diagrams

And now comes the Julia... it collapses all these layers.

You can:

  • Write high-level control logic

  • Drop to numerical linear algebra

  • Move into differential equation solvers

  • Even implement custom integrators

All in one language...

With sophisticated libraries in Julia, like differentialequations.jl and many such, the engineers have got the right tool for modelling and visualizing the maths and engineering problems...

Let's welcome Julia to the engineering colleges.

Today I was playing around with my college days' engineering education, namely RLC circuits, and found how Julia can transform it through intuitive visualization of the output - a damped waveform. We can visualize the output waveform by varying R, L, and C, yielding a powerful visual tool for a better understanding of basic circuitry theorems.

Here's the video of today's Julia experimentation - RLC series circuit...


Fig 1: RLC series circuit visualization

And here's the simulation of an RLC parallel circuit.

 

Fig 2: RLC parallel circuit simulation

I hope Julia transforms itself from a niche area of scientific modelling and simulation tools into a larger ecosystem of software - SciML is already happening...

Saturday, March 7, 2026

Wastage of engineering talents in Bharat - can a want to be Vishwaguru afford it?

Several studies and reports give a clear picture of the trend in India (Bharat). The numbers are quite striking.

1. How many engineers actually work in engineering?

  • India produces about 1.5 million (15 lakh) engineering graduates every year.
  • However only around 10–20% end up in core engineering jobs.
  • Some studies say only about 7% are suitable for core engineering roles due to skill gaps.

👉 So roughly:

Category Approx %
Core engineering jobs 10–20%
IT / software jobs 20–30%
Non-engineering careers (MBA, UPSC, banking, etc.) 40–60%+

2. Engineers moving to MBA

This is the largest migration from engineering.

  • Around 75% of MBA aspirants in India are engineers.
  • Many top MBA institutes historically had 60–70% engineering students.

Reasons:

  • Better salary growth
  • Management roles
  • Escape from low-pay engineering jobs

3. Engineers moving to UPSC / Civil Services

Engineers dominate the civil services exam.

  • Share of engineers among selected candidates increased from 46% in 2011 to about 65% by 2020.
  • In recent years over 70% of civil servants come from science/engineering backgrounds.

That means a huge fraction of India’s best engineers move to bureaucracy instead of technology.


4. Why engineers leave engineering

Several structural reasons:

1️⃣ Massive oversupply

  • India produces far more engineers than industry can absorb.
  • Only 300k new tech jobs vs ~900k–1.5M graduates yearly.

2️⃣ Salary problem

Typical starting salaries:

  • Core engineering: ₹2.5–4 LPA
  • MBA roles: ₹10–25 LPA (top colleges)

3️⃣ Poor quality of many colleges

Thousands of low-quality engineering colleges produce graduates with weak practical skills.

4️⃣ Social prestige

Families prefer:

  • IAS / IPS
  • Corporate management
  • Banking

These roles are seen as higher status than engineering work.


5. The paradox of India

India produces one of the largest numbers of engineers in the world, yet:

  • Many engineers never work as engineers
  • Top talent moves to UPSC, MBA, consulting, finance

This is why some policymakers even call it “waste of national technical talent.”


Simple takeaway

Out of 100 engineering graduates in India:

  • 10–20 → core engineering
  • 20–30 → IT/software
  • 40–60+ → MBA, UPSC, banking, consulting, entrepreneurship, etc.

Friday, March 6, 2026

A Simple Cloth Simulation in Julia — Inspired by My Son’s Blender Experiments

Four years ago, I watched my son Ridit, in class V back then, experimenting with cloth and soft-body simulations in Blender. At that time he was deeply interested in learning how modern graphics tools simulate physical behaviour such as cloth, smoke, and rigid body dynamics.

One of his experiments is captured in this video:


Watching him explore Blender’s simulation tools sparked a thought in my mind:

Could I reproduce a simplified cloth simulation myself using code?

Years later, while exploring scientific computing with Julia, I decided to attempt exactly that.

The result is a small but interesting Verlet-integration based cloth simulation written entirely in Julia.


Why Verlet Integration?

In physics simulations used in games and graphics engines, Verlet integration is very popular because:

• It is simple
• It is numerically stable
• It does not explicitly require velocity storage

Many cloth simulators in early game engines relied on this technique.

The basic idea is:

$$
x_{new} = x_{current} + (x_{current} - x_{previous}) + a\Delta t^2
$$

Where:

  • (x_{current}) → current position

  • (x_{previous}) → previous position

  • (a) → acceleration (gravity, wind etc.)



Representing Cloth as a Grid

A cloth can be represented as a grid of particles connected by constraints.

Each particle stores:

  • Current position

  • Previous position

Neighbouring particles are connected by distance constraints that maintain the cloth structure.

o---o---o---o
|   |   |   |
o---o---o---o
|   |   |   |
o---o---o---o

Some particles are pinned so the cloth does not fall entirely.


The Julia Implementation

Below is the Julia program that simulates the cloth.

using LinearAlgebra
using Plots

nx = 25
ny = 20
spacing = 0.2
dt = 0.02
steps = 300
gravity = [0.0,-9.8]

# Create grid
pos = [ [i*spacing, j*spacing] for j in 1:ny, i in 1:nx ]
prev = deepcopy(pos)

# Pin top row
pinned = [(i,ny) for i in 1:nx]

constraints = []

for j in 1:ny
for i in 1:nx
if i < nx
push!(constraints, ((i,j),(i+1,j)))
end
if j < ny
push!(constraints, ((i,j),(i,j+1)))
end
end
end

function verlet_step(step)

wind = [2*sin(0.05*step),0.0]

for j in 1:ny
for i in 1:nx

if (i,j) in pinned
continue
end

temp = pos[j,i]

accel = gravity + wind

pos[j,i] = pos[j,i] + (pos[j,i]-prev[j,i]) + accel*dt^2

prev[j,i] = temp
end
end
end

function satisfy_constraints()

for ((i1,j1),(i2,j2)) in constraints

p1 = pos[j1,i1]
p2 = pos[j2,i2]

delta = p2 - p1
dist = norm(delta)

rest = spacing
diff = (dist-rest)/dist

if !((i1,j1) in pinned)
pos[j1,i1] += delta*0.5*diff
end

if !((i2,j2) in pinned)
pos[j2,i2] -= delta*0.5*diff
end
end
end

anim = @animate for step in 1:steps

verlet_step(step)

for k in 1:6
satisfy_constraints()
end

x = [pos[j,i][1] for j in 1:ny, i in 1:nx]
y = [pos[j,i][2] for j in 1:ny, i in 1:nx]

scatter(x,y,legend=false,xlim=(0,6),ylim=(-5,6),markersize=3)
end

gif(anim,"cloth.gif",fps=30)


And here is the video if we run this application.



What the Simulation Does

The simulation includes:

1. Gravity

gravity = [0.0,-9.8]

Every particle experiences downward acceleration.


2. Wind Force

wind = [2*sin(0.05*step),0.0]

A sinusoidal wind creates cloth fluttering.


3. Constraint Relaxation

Multiple iterations enforce distance constraints so the cloth maintains its shape.

for k in 1:6
    satisfy_constraints()
end

This technique is commonly used in Position Based Dynamics.


Visual Result

The script generates an animated GIF showing a cloth hanging from the top row while wind and gravity deform it dynamically.

Even with a few dozen lines of code, we get a convincing physical effect.


What Makes Julia Interesting for Graphics Simulation

Working with Julia gives several advantages:

• Fast numerical computation
• Simple array operations
• Easy prototyping for physics simulations
• Smooth transition from mathematics to implementation

This makes it attractive for engineers exploring scientific computing, graphics, and simulation together.


A Personal Reflection

This small experiment reminded me of the moment I watched my son exploring cloth simulation in Blender years ago.

Back then he was experimenting visually.
Today I tried to rebuild the physics underneath that visual tool.

Sometimes inspiration in engineering does not come from textbooks — it comes from watching curiosity in the next generation.

And that curiosity often pushes us to explore deeper layers of science and software.

Thursday, February 26, 2026

Why Julia Is Becoming So Popular Among SciML Engineers And How Rebuilding My Old FFT Spectrum Analyzer Opened a New Railway Safety Perspective

 Back in 2012, I wrote a small experimental piece on building a simple FFT-based spectrum analyzer:

Read here...

At that time, it was more about curiosity. FFT fascinated me. The idea that a signal in time could reveal its hidden structure in frequency felt almost magical.

Fast forward to today.

I am revisiting that same idea — but this time using Julia, and not just for visualization, but for building something that could contribute to modern railway track safety systems.

And that’s when I realized why Julia is becoming so popular among the SciML (Scientific Machine Learning) community.


The Shift: From Scripting to Scientific Computing

In 2012, building a spectrum analyzer was largely:

  • A signal processing experiment

  • A learning exercise

  • A visualization tool

But today, with Julia, the same FFT analyzer becomes:

  • A condition monitoring prototype

  • A vibration diagnostics engine

  • A predictive maintenance building block

That shift is profound.


Why SciML Engineers Love Julia

The SciML ecosystem — led by projects like SciML — is not just about machine learning. It’s about merging:

  • Differential equations

  • Physics-based modeling

  • Optimization

  • Machine learning

  • High-performance computing

Julia allows all of this in one language.


1️⃣ Performance Without Leaving the Language

FFT in Julia uses FFTW under the hood.

You write:

fft(signal)

And you get near C-level performance.

No bindings.
No external compilation workflow.
No switching between Python and C++.

For someone who enjoys going deep into engineering mathematics, that matters.


2️⃣ Multiple Dispatch Feels Like Engineering Thinking

As someone who loves system design and patterns, I noticed something interesting.

In C++ or Java, you think in terms of classes and inheritance.

In Julia, you think in terms of:

  • Mathematical structures

  • Generic functions

  • Behavior based on types

It feels closer to how engineers think about systems.

Not "object owns behavior" —
but "system responds based on physical type."

That mental alignment is powerful.


3️⃣ From FFT to Railway Safety

Let’s connect this back to my spectrum analyzer journey.

A railway track under load behaves like a vibrating beam.
When a crack develops, stiffness changes.
That produces high-frequency bursts in vibration signals.

With Julia, I can:

  • Simulate the rail as a mass-spring-damper system

  • Inject a stiffness drop

  • Perform FFT

  • Detect high-frequency anomalies

  • Add ML-based classification

All in one environment.

Modern railway systems, including those used by Indian Railways and Deutsche Bahn, rely heavily on:

  • Vibration analytics

  • Spectral energy monitoring

  • Predictive maintenance

What began as a simple FFT experiment now becomes a prototype for rail crack detection.

That evolution mirrors Julia’s evolution.


SciML Is More Than Machine Learning

SciML is about:

  • Embedding physical laws into ML

  • Solving differential equations efficiently

  • Combining simulation with learning

Using Julia, I can go from:

\[ m \ddot{x} + c \dot{x} + k x = F(t) \]

to spectral fault detection
to anomaly classification

without leaving the language.

That continuity is rare.


Why This Matters for Engineers

Many engineers hesitate to enter machine learning because:

  • Python feels high-level but slow

  • C++ feels powerful but heavy

  • MATLAB feels proprietary

Julia sits in a sweet spot:

  • Scientific syntax

  • High performance

  • Open ecosystem

  • Growing SciML community

And most importantly:

It lets you experiment at system level.


My Personal Realization

Rebuilding my old FFT-based spectrum analyzer in Julia was not nostalgia.

It was a rediscovery.

The same math.
The same Fourier transform.

But now:

  • Faster

  • Cleaner

  • Extensible

  • Connected to real-world safety applications

That is why Julia is becoming popular among SciML engineers.

Because it doesn’t just let you code.

It lets you think in equations and deploy in production.


Final Thought

What started as a simple blog post on FFT years ago has evolved into a small predictive maintenance prototype for railway safety.

Julia didn’t just make it easier.

It made it natural.

And when a language feels natural to scientists and engineers —

That’s when it starts becoming popular.

Here's the source code...

############################################################
# Rail Vibration Monitoring Prototype
# Rail Crack Simulation
############################################################

using FFTW
using DSP
using Plots
using Statistics
using LinearAlgebra

# -------------------------------
# 1️⃣ System Parameters
# -------------------------------

fs = 5000 # Sampling frequency (Hz)
T = 2 # Signal duration (seconds)
t = 0:1/fs:T-1/fs
N = length(t)

println("Sampling Frequency = $fs Hz")
println("Total Samples = $N")

# -------------------------------
# 2️⃣ Normal Rail Vibration
# -------------------------------

f_mode1 = 50
f_mode2 = 120

signal = 0.7*sin.(*f_mode1*t) .+
0.3*sin.(*f_mode2*t)

# -------------------------------
# 3️⃣ Inject Crack Fault (High-Frequency Burst)
# -------------------------------

crack_time = 1.0 # crack at 1 second
crack_index = Int(round(crack_time * fs))

burst_length = 200 # samples (~40 ms)
crack_freq = 800 # high-frequency crack signature

if crack_index + burst_length <= N
signal[crack_index : crack_index + burst_length] .+=
2*sin.(*crack_freq*t[1:burst_length+1])
end

# Add background noise
signal .+= 0.2randn(N)

println("Simulated Crack Frequency = $crack_freq Hz")

# -------------------------------
# 4️⃣ Time Domain Plot
# -------------------------------

p1 = plot(t, signal,
xlabel="Time (s)",
ylabel="Amplitude",
title="Rail Vibration Signal (Crack Simulation)",
legend=false)

# -------------------------------
# 5️⃣ FFT Processing
# -------------------------------

window = hanning(N)
signal_w = signal .* window

fft_result = fft(signal_w)
freq = fs*(0:N-1)/N
magnitude = abs.(fft_result)/N

halfN = div(N,2)

# -------------------------------
# 6️⃣ Spectrum Plot
# -------------------------------

p2 = plot(freq[1:halfN],
magnitude[1:halfN],
xlabel="Frequency (Hz)",
ylabel="Magnitude",
title="Frequency Spectrum",
legend=false,
xlim=(0,1000)) # Extended to show 800 Hz

# -------------------------------
# 7️⃣ Side-by-Side Display
# -------------------------------

p3 = plot(p1, p2, layout=(1,2), size=(1200,400))
display(p3)

# -------------------------------
# 8️⃣ Crack Detection Logic
# -------------------------------

println("\n🔍 Running Crack Detection...\n")

# Detect energy in high-frequency band
high_freq_indices = findall(freq .> 600 .&& freq .< 1000)
high_freq_energy = sum(magnitude[high_freq_indices])

println("High Frequency Energy = ", round(high_freq_energy, digits=4))

if high_freq_energy > 0.02
println("⚠️ Possible Rail Crack Detected (High-Frequency Burst)")
else
println("✅ No crack signature detected")
end

# -------------------------------
# 9️⃣ RMS Indicator
# -------------------------------

rms_value = sqrt(mean(signal.^2))
println("\nRMS Vibration Level = ", round(rms_value, digits=4))

println("\n--- Rail Crack Monitoring Simulation Complete ---")

wait()

And here's when we run the application...


📈 Time Plot

A sharp disturbance around 1 second.

📊 Frequency Plot

A strong peak near:

800 Hz

🖥 Console Output

⚠️ Possible Rail Crack Detected (High-Frequency Burst)

Monday, February 23, 2026

Design patterns gave me a thrust to move beyond programming syntaxes and julia is giving me a chance to mix and visualise engineering skills with software

 CS != Programming...

Initially, learning CS appears to be like learning many seemingly unrelated subjects together. But with maturity and experience, you will be able to understand that these subjects are all connected.

C++, Java, Python - you name any object-oriented language - they seem to be different, but only to those who don't deep dive. Once you master the fundamental object-oriented part of these languages, you will realize that they are all the same.

Design patterns help you get to the core of any object-oriented language. Once you master the Design Pattern, you will never say how to write this program, but how this program should be designed to hold the basic object-oriented principles and how it will interact with the outside world. So you will never say that we will pick up the correct implementation of a system during runtime. Rather, you will exclaim - can't we use Strategy Design Pattern here?

However, we must understand that software or computer science is not that useful unless we apply it to real-life engineering problems. There lies the satisfaction of a scientist and an able engineer. At this juncture, the true maturity of a Computer Science guy is judged. 


Many ecosystems split engineering work across tools:

  • MATLAB for modeling

  • Python for data

  • C++ for performance

  • Simulink for block diagrams

Julia collapses these layers.

You can:

  • Write high-level control logic

  • Drop to numerical linear algebra

  • Move into differential equation solvers

  • Even implement custom integrators

All in one language.

For so many years, the process of engineering computer science was that the scientists modeled an engineering solution, and then software engineers would realize it through code. But what if we want the scientists themselves model and write code to execute that model - all by themselves? For that to happen, we needed to develop a language with a deep binding with the engineering Maths and Physics.

Enter the world of Julia - and you got it - model any scientific problem and then produce the code all alone - the beauty of julia.

As my journey to know WhoAmI continues, my respect for the julia programming language is increasing day by day. So when I can model a PID control or a dipole antenna in Julia, the joy is natural.

I never thought I would be able to delve into hardcore engineering subjects after so many years of engineering graduation.

But this is the reality.

My exploration continues.

Below is the output of a PID control developed using julia.





And here's the far-field radiation pattern of a dipole antenna...



The greatest job satisfaction is always to be at the juncture of software and engineering.

And I am loving it.