Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "interesting"
-
Sharing a short story.
Time: 1:30 am
Conversation between me and a night watchman in my society.
I was walking and this watchman suddenly stopped me and started asking questions.
Watchman: Isn't it late at 1:30am. When do u sleep?
Me: I sleep very late (replied in a very uninterested manner)
Watchman: Which year are you?
Me: Final year of Graduation
Watchman: Which branch?
Me: (a bit annoyed now) Software Engineering
Watchman: So you know programming?
Me: (little shocked that he knows what's programming) Learning
Watchman: So, do your university teaches C, Python and UNIX?
Me:(completely shocked by his knowledge) Yup. Except UNIX, others yes.
Watchman then asked some fees related questions and placements scope.
I was annoyed when he approached me for a little talk.. But had a wonderful experience talking to this person. It's great when you meet such unexpected person having such knowledge.
When I asked him how he knows all these, he said he talks like this to many students and learnt it.
His last line to me when I said that you know a lot, was:
Sir, you are the ocean, I am a needle in it.
Truly awesome moment... Never judge anyone by looks or his occupation... Knowledge is something that anyone anywhere can gain...
Respect to that watchman...5 -
Fun/Interesting fact:
"++i" can be slightly faster than "i++"
Because "i++" can require a local copy of the value of "i" before it gets incremented, while "++i" never does. In some cases, some compilers will optimize it away if possible... but it's not always possible, and not all compilers do this.15 -
0!=1 is both mathematically correct (because 0 factorial is 1), and logically correct (since 0<1).
I found this interesting.8 -
Do you leave easter eggs at any of your projects? If yes - what are the most interesting of them?26
-
Damn it why is developing way more interesting at night time. Makes having a 9 - 5 really difficult4
-
Less rant, more mildly interesting Java trivia.
Integer i0 = 3; Integer i1 = 3;
Integer i2 = 300; Integer i3 = 300;
i0 == i1 is true as expected
i2 == i3 is actually false
Java caches -128 to 127 Integer objects for faster perf so when you're inside that range, the objects are indeed the same, but because == checks object equality, the Integer outside of the range is not cached and had to be initialized, so i2 and i3 are two different objects.
You can totally break some tests this way :)9 -
Call me boring but...
Working in a secure job with a great work/life balance, little or no travel, great people, really interesting challenges, earning a tidy salary, contributing to open source, all the while creating something worthwhile and interesting.
I have a few of those already, so can't complain.10 -
I've started logging my sleep patterns on a spreadsheet. Hoping to get some interesting statistics eventually.17
-
So recently I did a lot of research into the internals of Computers and CPUs.
And i'd like to share a result of mine.
First of all, take some time to look at the code down below. You see two assembler codes and two command lines.
The Assembler code is designed to test how the instructions "enter" and "leave" compare to manually doing what they are shortened to.
Enter and leave create a new Stackframe: this means, that they create a new temporary stack. The stack is where local variables are put to by the compiler. On the right side, you can see how I create my own stack by using
push rbp
mov rbp, rsp
sub rsp, 0
(I won't get into details behind why that works).
Okay. Why is this even relevant?
Well: there is the assumption that enter and leave are very slow. This is due to raw numbers:
In some paper I saw ( I couldn't find the link, i'm sorry), enter was said to use up 12 CPU cycles, while the manual stacking would require 3 (push + mov + sub => 1 + 1 + 1).
When I compile an empty function, I get pretty much what you'd expect just from the raw numbers of CPU cycles.
HOWEVER, then I add the dummy code in the middle:
mov eax, 123
add eax, 123543
mov ebx, 234
div ebx
and magically - both sides have the same result.
Why????
For one thing, there is CPU prefetching. This is the CPU loading in ram before its done executing the current instruction (this is how anti-debugger code works, btw. Might make another rant on that). Then there is the fact that the CPU usually starts work on the next instruction while the current instruction is processing IFF the register currently involved isnt involved in the next instruction (that would cause a lot of synchronisation problems). Now notice, that the CPU can't do any of that when manually entering and leaving. It can only start doing the mov eax, 1234 while performing the sub rsp, 0.
----------------
NOW: notice that the code on the right didn't take any precautions like making sure that the stack is big enough. If you sub too much stack at once, the stack will be exhausted, thats what we call a stack overflow. enter implements checks for that, and emits an interrupt if there is a SO (take this with a grain of salt, I couldn't find a resource backing this up). There are another type of checks I don't fully get (stack level checks) so I'd rather not make a fool of myself by writing about them.
Because of all those reasons I think that compilers should start using enter and leave again.
========
This post showed very well that bare numbers can often mislead.21 -
It's fucked up that I can't think of an interesting rant. So much for my first rant. Hello, world!7
-
...and this photo from our latest conference, shows our developers having an interesting debate about tabs vs spaces.3
-
It's interesting how much fun Javascript is, when you just ignore it and use Typescript instead. 😎2
-
According to Steam Stats, Ethiopia has downloaded 1.5 terabytes of games in the past 7 days. Madagascar has downloaded 5.2
China is in the lead with 79 PB, followed closely by America with 60.11 -
I'm at a Dutch Meet-up about security and privacy. Quite interesting. Any Dutch ranters here as well?5
-
Tried Deepin. Looks interesting. For some reason screenshot app includes its ui into screenshot image.13
-
Finds interesting looking "graduate' software development role...
"PhD desirable, leading university, straight As at A level"
Wow.3 -
@dfox You complained about the mobile version of GitHub, so maybe this could be interesting for you!7
-
Just saw an advert for a well known store, who are supporting Care for Children this Christmas. Nice advert.
One commentor trashed it saying "it doesn't mention anything about Jesus and it doesn't make sense". I replied with "neither does miraculous conception".
I was then called "ignorant"....
Interesting. People are...interesting.2 -
Hey everyone!
I'm on the hunt for new and exciting languages!
I'll state the ones I already know:
Python, Haskell, C(++), C#, Java, JavaScript, Ruby, Rust, Lua, about every kind of Basic, some branches of Lisp, BrainF**k, assembly, Octo (Chip-8) and GML(basically JavaScript).
I've also learnt some styling languages:
Html, CSS, Markup and Markdown.
Some misc languages too: Regex and a runny bit of the Wolfram Language.
Also I'm kind of limited to Windows, Linux and Android, as I do not own any Apple hardware except I have access to an old iPad, so are languages like Swift still good?
Thanks!28 -
I accidentally set the width and height of a rectangle to zero in my code, and my program drew a circle. Interesting outcome.3
-
I promised myself not to fuck too much with new JS frontends. But Sveltes premise seems interesting enough to check it out and the concept of reactive blocks of code in JS sure is interesting.
This language keeps evolving as well as its tooling. I think shit is pretty amazing.14 -
Idea for weekly if you need some:
What's the most interesting problem you encountered/solved?
❤ @dfox7 -
I stumbled across a game called where you have to control a robot using 8086 assembler. The site looks under construction but it looks interesting!
You can check it out here: https://muchassemblyrequired.com/ga...5 -
I'm curious, what kinds of projects is devRant working on right now? What's your most recent project, personal or interesting, that you've picked up recently?
Mine is a program that automates schoolwork for you.34 -
Carving wood is more interesting than engaging in meaningless conversations with selfish women and drinking wine.17
-
whenever i tell my dad about a technology that is going way beyond our imagination and tell him about the consequences of it and how we should worry about that
then he watches some random tv show about internet security/cyber security and various algorithms (very abstract) which are currently changing the world and how we should care about our data and what the consequences of X technology is...
he be like: "oh is that true? that's interesting, how does that work?"
i'm like😑 dad, i already told you about that😩
ever had similar experience?1 -
Does anyone here have anything interesting to do? I am free now so looking for something creative to work on.
I don't care about getting any money out of it. AS long as it's interesting I'm in!15 -
Interesting coincidence. I have stared at this shower curtain far too long.. I MUST KNOW ITS SECRETS.1
-
There are so many interesting and great things to learn in IT, but I have the feeling, none of these is taught at my university 😪4
-
Does anybody have a VR Headset?
This seems interesting vr application for programing.
https://immersedvr.com/22 -
"If you want to be the designer that stands out of the rest, do something more than just designing. Make an interesting project like for charity, start an agency, hold an exhibition, start a design festival or build a site like Behance. Become interesting." - Jennifer Cirpici
-
The most interesting part of learning Jekyll is trying to remember how to type 'Jekyll' correctly...
-
Client doesn't trust SendGrid. They're having their IT department deploy their own SMTP servers. This should be interesting.1
-
Last December I discovered the Chinese curse "May you live in interesting times", and my new year's wish was that there be interesting times. This year I wish there be mundane times.2
-
Simply walking. While walking I'm getting many ideas how to implement my features/changes. Especially when they are interesting.
-
Back 2 school tomorrow (and a new one)... Hoping that computer class will be interesting and no shitty stuff6
-
To be successful. It is not IQ, not social intelligence. It is grit. Interesting. https://youtu.be/H14bBuluwB82
-
They are using a interesting code formatting style
Star Citizen: Bugsmashers! - Spectator Mode Crash - YouTube https://youtube.com/watch/...2 -
Maybe a repost but interesting no? (got into an discussion with a friend, needed evidence)
https://bloomberg.com/graphics/...1 -
Regarding processors, 2019 is going to be interesting :
Arm vs Intel vs AMD
https://youtube.com/watch/... -
Oh this looks like an interesting 10 min Nodejs tutorial on utube!
*30 minutes of fighting modules installation*2 -
Found this interesting JS library, JSONPath. Seems great except that the examples are pretty useleless.7
-
I’m juggling 3 reference books for a microprocessor course this semester. Have to study 8085 and 8086 microprocessors and interfacing them. Everything seems more interesting when exams are near I swear. I find this course genuinely interesting now9
-
I have come to an interesting realization. I am nothing more than an abstraction layer around Jira.1
-
Surface3 and the single USB port does not work anymore... no mouse, no external keyboard useable. interesting :/
-
Considering making a plugin for my test running just for this gif:
Would make failures more interesting3 -
The feeling of a interesting day coming up when the coffee machine crashes and reboots when pushing the button.2
-
Is it terrible that I always take the interesting projects at work, and give the juniors the boring stuff?1
-
i think this is an interesting concept. what other crazy apps or UI are out there.
http://eaglemode.sourceforge.net/8 -
Finally moved into New Position in a DEV Center, feels good to get more interesting requests and challenges :)
-
Just spent the last hr+ reading (stalking?) dfox's comments. They're actually quite interesting and insightful.
-
"I have always railed against ideological purity, or any other kind. Corruption is more interesting than purity." - Milton Glaser
-
Re-instantiating the interesting bits from the other thing:
Time complexity of unsorted array equality operations. Go!23 -
Was reading a very interesting rant, and then devRant crashed 🤨
(Am I supposed to post rants here?)10 -
I want to learn new programming language.
Can anyone suggest what is interesting and trending lang.18 -
https://bit.ly/2yaWZFd
An interesting article on silent meeting. I think this is extremely efficient. Thoughts?4 -
I'm not sure if anyone else discovered this, but the devRant Android app doesn't delete abandoned comments, so if you start to reply to someone's comment (automatic @mention) and back out without typing anything, the next reply you hit on the same thread will append the @mention after the previous one. You can also insert a commenter's name into a comment fairly easily this way. I am relatively new here, and am curious if this is the desired behavior.
While this has potential to be useful, I would appreciate the option to clear a comment box entirely, since I often abandon a comment part-way because I re-think how I want to say something very often.2 -
Looking up new js libraries/interesting CSS snippets that MAY help but probably won't. (But they might)1
-
Looks like an interesting Intern position around my place.
Too bad I still didn't even graduated middle school. ^^2 -
I'm watching
"Cybercrimes with Ben Hammersley"
on Netflix
It's quite involving and interesting..
Anyways carry your rant... -
Interesting how SEO agencies often feel the need to 'rebrand' when their domain is penalised by Google
-
Just found an interesting bit of AI for developers:
https://beta.openai.com/codex-javas...
Tell it to create something...5 -
Fuck, why is every mildly interesting Algo trading backtesting python package broken or killed off :(4
-
Any interesting april fools situations that happened to you? Also did DevRant do something this year?5
-
What's the most interesting project you've worked on based on API of the internet geants (Facebook, Google, Amazon, etc..) ?!2
-
!rant
Need a programmer who has previously worked on nodejs/ opencv for facial recognition. Got an interesting idea.3 -
Well, I guess that I have to practice more CTACs questions... Shit the job sound it really interesting...2
-
A better OS for smartphones.
Something more complete than android < 7.
Finally android 7 makes it interesting. -
Interesting geometric sequence in maths class today. Needless to say, the working out was pretty short.
-
More news from the verge, as the internet itself becomes smarter, big tech companies rethink internet policy.
https://theverge.com/24067997/...
https://en.wikipedia.org/wiki/...
#news #links #theverge #wikipedia #interesting #changing #bigtech #ai3 -
!rant
Hi guys i hope you're doing well.
I have to do a project this semester and i know teachers won't suggest anything interesting so i need you help, im looking for something interesting that i'd be proud of, in IoT, OS or networking. Any ideas? -
"If you want to be the designer that stands out of the rest, do something more than just designing. Make an interesting project like for charity, start an agency, hold an exhibition, start a design festival or build a site like Behance. Become interesting." - Jennifer Cirpici3
-
Does anyone know of interesting interfaces which can be used for text based adventure python game?8
-
End statements in Ruby are interesting design decision since indentation matters. Why not do it like Python?1