HNHacker News
TopNewBestAskShowJobs

msiyer

181 karma · joined April 5, 2014

submissionscomments
msiyer··on C# vs. Java int: Primitive type semantics, runtime behavior and tribal knowledge
Thank you! Happy to see a positive comment. Took a lot of effort.

I like long-form writing. However, it takes a lot of effort. So, I end up not writing often.

It is a hot topic especially among polyglots who have to deal with the same word meaning different in different languages.

msiyer··on Good system design
... that is how you achieve a good design (for the time being).
msiyer··on Good system design
> Avoid having five different services all write to the same table. Instead, have four of them send API requests (or emit events) to the first service, and keep the writing logic in that one service.

The ideal solution: Avoid having five different services all write to the same table.

If five different services have to write to the same table, there is a major overlap of logic too. Are the five services really different or one would suffice?

Taking practical realities into consideration, we can do what the author says. However, we risk implementing a lot of orchestration logic. We introduce a whole new layer of problems. Is that time not better spent refactoring the services: either give them their own DB tables or merge them into one servic?

msiyer··on C# vs. Java int: Primitive type semantics, runtime behavior and tribal knowledge
move on.
msiyer··on C# vs. Java int: Primitive type semantics, runtime behavior and tribal knowledge
A Reddit debate over C# vs. Java int, sparked by a Microsoft engineer’s claim that C#’s int is a primitive, revealed confusion amplified by `Type.IsPrimitive`. This led to the Lₐₓ/Lₐₜ/R (LAX/LAT/R) taxonomy: a framework to classify types by their language-level, atomic, and runtime properties, resolving disputes rooted in specs and tribal knowledge.
msiyer··on Show HN: Ritt – Tag-centric file manager
This looks cool. However, anybody interested in a cross-platform option can look at https://www.tagspaces.org/
msiyer··on Gerald Sussman: Programming is (should be) fun (2022) [video]
Learning biology to understand software-system concepts is underrated. For example:

- the way pain-killers work tells you a lot about how keyloggers or man-in-the-middle attacks work

- look at how DNA "syntax checking" happens during mitosis to learn about compiling in general

- a puppy swallows whatever it sees; this gives the immune system enough test data about the surroundings etc. (similar to ML)

- a huge amount of cyber-security concepts can be understood by learning biology

msiyer··on This week in KDE: Double-click by default
there is nothing "basic" about this. something that seems pretty obvious to you may not be natural to someone else.

i think the single-click navigation or opening of files was done to mimic how hyperlinks on the internet work. some people are wired that way.

on the other hand, some people have a completely different brain configuration: they think that a single-click should select whereas a double-click should open a file.

there are people who do not agree with both these options. maybe, they want everything to work via audio commands.

how do we decide what the default behavior should be? the answer is: leave it to the user.

msiyer··on WD My Book users wake up to find their data deleted
WD screwed up. However, users must have a backup policy for when (not if) data hits the fan. For important data, having multiple onsite copies with few of them totally dumb (as opposed to smart IoT) and multiple offsite copies should become a habit.
msiyer··on Microsoft Irish subsidiary paid zero corporate tax on £220bn profit last year
I am not saying you are wrong; just providing another perspective. When every penny you *spend* or *save* is taxed, you end up paying more than 50% of what you made to The Man. Either tax the income or tax the spending, not both, is my argument.
msiyer··on Microsoft Irish subsidiary paid zero corporate tax on £220bn profit last year
It will trickle down one day. You just have to wait for it.
msiyer··on Microsoft Irish subsidiary paid zero corporate tax on £220bn profit last year
Income tax is not the only tax one pays. Every penny one spends, saves and withdraws is taxed. It may add up to more than 50% in some instances.
msiyer··on Ask HN: How to study programming language theory as a non CS student?
I am Mechanical Engineering graduate pursuing my Masters in Software Systems after 10+ years of industry experience.

Attack the Type System first. Do not read PhD research papers, just the practical aspects of it:

- Why is it that integers I am working with are 8-bit (or 16-bit or 32-bit ...)?

- What is "int x = 7;" translated into by the compiler?

- How is basic arithmetic implemented in the hardware? Integers, floating point etc.

- If my system has 16-bit integers, for example, how can I deal with larger numbers than what 16 bits can accommodate? Some SW implementation to hide HW limitations?

Then go on to understand how more complex types are implemented etc.

From there go on to things like Stack Frames and Heaps and Application Binary Interfaces.

From there go on to memory clean up and why we need Garbage Collectors etc.

...

To me, a Programming Language is a set of rules (enforced by a compiler or interpreter) for deterministic bits manipulation. The Type System is the core set of rules around which everything else revolves. Even lack of a Type System in a language is a Type System.

msiyer··on A man who tried to redeem the world with logic (2015)
I agree.

The "set of premises and goals" we currently operate upon are not ours, but planted by someone else (parents, teachers, media...).

Add to all this the fact that world may run however it wants, but the emotions are ours. If we alter the "set of premises and goals" we can alter our emotional response.

msiyer··on A man who tried to redeem the world with logic (2015)
The "unfortunately" in your first sentence is an indicator of an emotion - sadness or unhappiness.

>> It runs on emotion

So, I think, you are right.

msiyer··on Major employers scrap plans to cut back on offices – KPMG
I do not mean to offend, but this is what schooling does to most humans - you commute to school, have clear distinction between home and school spaces, have clear distinction between school and neighborhood buddies (some overlap happens), various rituals...
msiyer··on GitHub, fuck your name change
Banning a word is pointless. The word itself has no power. It is the feeling piggybacking on the word that gives life to the word. The feeling will find another word as vehicle.
msiyer··on Always Bet on Text (2014)
I am talking about efficient use of available space. A terabyte may store a lot of pictures, but if we can achieve the data density of DNA, we may be able to process (store, transmit, transform...) far more amount of data far more quickly. Then text vs multimedia will become irrelevant.
msiyer··on Always Bet on Text (2014)
If we agree that a picture is worth 1000 words, then...

Given the current state of information technology, I agree that we are most efficient at processing text. However, that can change pretty quickly. Storage mechanisms similar to DNA can make the difference between text and multimedia irrelevant. It will happen because nature already does that.

msiyer··on Amazon shortchanged drivers $61.7M in tips
Is this is what is known as trickle-down economy? Down and up being perspectives, I am happy to announce that the system works.
msiyer··on Facebook's Hypocrisy on Apple's New iOS 14 Privacy Feature
This is a stupid deal: User gives away data for free to these corporations and they sell it to make insane profits. Those that pay for such data pass on the costs to their customers.

Eventually, it is the same user who gave away his data for free that pays too. Double taxation.

msiyer··on I assume I’m below average (2010)
The labels 'genius' and 'gifted' look convincing until you read about 'accidental genius' - genius acquired after a serious illness or injury.

'genius' is just a particular configuration out of millions or billions in which a brain can form. Brain's real estate is malleable like a city's. So, no reason why one cannot configure it to one's liking. Now, the procedure to do so might not be as easy.

I also think that there is not much difference between an alcoholic (any addiction for that matter) and a workaholic genius. The reason is that both do not know what drives them.

msiyer··on Gravity is not a force – free-fall parabolas are straight lines in spacetime
Perspective is everything.

A simple example to understand how perspective can alter reality is to imagine being a point floating in a 3-D space where you are able to see the X-Y-Z axes. Now, imagine tracing (0,0,0) when you are at (500,500,500). Trivial.

Now, trace (0,0,10^100). That is a huge Z-line you would say. This is the side view.

Now, move to (0,0,10^100) from (500,500,500). This is the top view. What do you see?

Another example: When viewed from perpendicular to X-Y plane, a circular motion on X-Y plane looks properly circular.

When the same motion is viewed standing far away on the X-axis, the motion resembles an oscillation.

Same motion, different perspectives, seemingly different results.

msiyer··on Gravity is not a force – free-fall parabolas are straight lines in spacetime
Physics does not magically become different outside the confines of a good school.
msiyer··on “You want to know something about how bullshit insane our brains are?” (2018)
All our senses, without exception, can only detect the past. Every sensor (natural or man-made, photodiode or eye) deals only with the past.

Say a novice practices to catch a ball on a windless day. He gets better. What exactly is he getting better at? He is getting better at guessing the trajectory of the ball based on past 3D positions of the ball.

This guesswork has its limits. He learns the limits on a windy day. He gets better with more practice on a windy day.

This new knowledge too has its limits. He learns that on a windy day at the beach.

The brain tries to guess the future based on a sequence of events. This is why detaching from senses is an experience like no other. Meditation, irrespective of the modality, is a way to detach from senses. We do not live in the past.

If our brains were not capable of holding memories and only of detecting one event at a time, two cars moving at vastly different speeds would look separated in space, but nothing more than that. I think, our senses, our ability to hold on to memories (past sensor data) of events and our ability to compare two past events combined makes the world animated. This also seems to give birth to the sense of passage of time. Which also could mean that time does not exist?

msiyer··on Japan has 33k businesses at least a century old
The complexity is mind boggling. Physically, we are not what we were a few months ago. And what exactly is physicality?

People were commenting that the idea that every cell is replaced in a living organism is 'laughable'. Brain cells and osteocytes were cited as examples of cells that are never replaced.

However, I still think, and more strongly than ever, that brain cells and osteocytes can be examples of unchanging cells if an only if it is proven beyond a shadow of doubt that every single atom constituting such cells remains intact during the lifetime of such cells.

Since the human body is subjected to a lot of physical stress and damage and repair is continuous, it is possible that damaged brain cells or osteocytes get replaced with new ones. Need to read more about this, though.

msiyer··on Japan has 33k businesses at least a century old
I am not a biologist. One way or the other the body is in a constant state of flux. Even if 90% of body is regenerated over a period of time, it is still a great wonder.
msiyer··on Japan has 33k businesses at least a century old
Can live up to 50 years. OK. What happens when they do not? Does the body not regenerate them? Various kinds of stress can cause them to not live that long. It is not as black and white.
msiyer··on Japan has 33k businesses at least a century old
https://www.ncbi.nlm.nih.gov/pubmed/16495940?access_num=1649...

Adult neurogenesis or brain plasticity is a fact. Skin cells, blood cells and all types of cells have a finite lifespan - a few days to a few months.

msiyer··on Japan has 33k businesses at least a century old
This thought experiment is neither just a thought nor an experiment. This is the reality of life - every single cell in the body of a plant or animal is replaced every few months. Essentially, talking about the physical body, we are not what we were a few months ago.

EDIT: Agreed, a few types of brain cells do not get replaced, but everything else does. My point still stands. Physically, we are not what we were a few months ago.

Page 1 of 7Next →