354 karma · joined July 14, 2012
1. If OOP pointer is going to eat up our memory, there we loose / waste some bits of memory. 2. And as you have said even using bool type, is going to say waste by 7 bits!
Since we are dealing more with objects in java world, then I guess, 32 bit VMs will be much faster than 64 bit VMs. Or even 16bit will be more faster, from my understanding.
Still I have a final question over here, all the OOP pointers does goes the CPU caches and registers?
>Suppose you are eg storing small integer counts in ints; if it's a java int you are using 4B to store 1B, while if it's a java.lang.Integer it costs 16 bytes plus most likely an 8B pointer.
This wastage does happens only in reference types? Tomorrow say if value types are been created, then these sort of issue will get resolved?
>Another way to consider this is if you are using 8B pointers, you waste a lot of that as constant zeros
Why of constant zeros? And in the line your saying "-- 1TB is 2^40", your referring 1TB of cache line?
I used to make guess when I debug my day to day problem. Say for example, when I run selenium, and the browser doesn't open up:
1. Does the jar is valid? 2. Safari has selenium plugin? 3. Have custom installation rather than default installation location?
Then the smart you make the guess, the smart you can solve the problem.
Its about removing the un-wanted space ( by making smart guess ) and debugging the right space.
> A chance for the eyes to change focal range from the fixed distance of the shitty monitors work provides.
is followed by me daily. I have a cute nice wallpaper hanging behind my pc. Every say 10 minute, I change my vision to point to the wall-paper from regular pc vision.
After following this, I haven't faced any eye stress. Really helped me.
Anyone follows over here?
>with SSH, the server will send a version string upon connection (and expects the client to do the same).
Say for example if I do:
ssh some.machine.com
I'm (being the client ) call the ssh port ( server ) running on the some.machine.com, right? If thats the case, client is who starting the conversation right?Correct me if I'm wrong.
first message for ssl comes from client but for ssh first message comes from serverI wonder how a phone with dual sim can handle battery life? Thats totally an interesting problem to solve. I use micromax which is a dual sim and the battery life is pretty good, last for a day.
Can you say me why that is the case?
https://blog.jcoglan.com/2011/03/05/translation-from-haskell...
I understood the mondas in terms of javascript, as it is written over here: https://blog.jcoglan.com/2011/03/05/translation-from-haskell...
Because it does transform the class/ interface to work with other class, right?
Am I missing anything here?
I totally agree with you.
> Nevertheless, it would be kinda interesting to see how you get the mood of a website.Ya analysing the mood of the HN site is very difficult one. I thought of using lib like NP that are available in Python.
Something like this: http://text-processing.com/demo/sentiment/
But I have never tried them.
Nice to know this is called as "Rubber Ducking"