HNHacker News
TopNewBestAskShowJobs

hexomancer

2,360 karma · joined July 25, 2016

a.hr.mostafavi@gmail.com
submissionscomments
hexomancer··on PhD gets 5x increase in postdoc interview invitations by just changing his name
Can't find the hackernews post (probably got removed) but it was a link to this reddit post: https://www.reddit.com/r/MensRights/comments/xcrv6k/i_sent_1...
hexomancer··on PhD gets 5x increase in postdoc interview invitations by just changing his name
There was a similar post a few days ago where someone did this but instead of changing their name they changed their gender (female names got significantly more responses). That post got flagged and this post is in the frontpage. Interesting.
hexomancer··on CppCon 2022
> The morals of the community in question. The laws and customs of unrelated countries or communities are immaterial to the decisions of this particular community.

So it is OK for me to demand a homosexual co-worker be fired if the community of my workspace is homophobic?

hexomancer··on CppCon 2022
My parent post specifically used the word "crime" my response was to show that "being a crime" is not a good reason. Also morality is subjective. For example, the government of my country argues that homosexuality is immoral (obviously I disagree). So the question is whose moral are we considering? Your personal morality? Mine?

And is it moral to ostracize someone from society because of a crime they have been punished for?

hexomancer··on CppCon 2022
What if I was uncomfortable with a homosexual coworker (and homosexuality actualy is a crime in my country). Would that be OK?
hexomancer··on CppCon 2022
> On the other hand, we also recognise that we can’t force people to work with those they don’t want to.

If I don't want to work with a black person, do I have a right to demand they be fired?

(this is a theoretical question)

hexomancer··on Ask HN: It's Demo Day. What are you working on?
Sioyek, a PDF viewer for reading research papers and textbooks.

See the website for more info: https://sioyek.info/

And here is an article on how sioyek features help with reading documents with lots of references: https://ahrm.github.io/jekyll/update/2022/08/30/sioyek-featu...

hexomancer··on Ask HN: Best way to do TTS for long texts
No, as I explained in the post, this only happens when I try to TTS entire text pages. If I split sentence by sentence it is OK, but then the speech doesn't flow as well.
hexomancer··on Ask HN: Is there any decent API to download a paper given its name?
Yes, I have thought of that but that would use a lot of users' bandwidth and also as you said puts unnecessary pressure on scihub servers.
hexomancer··on Ask HN: Is there any decent API to download a paper given its name?
Google blocks you once you use python to request it multiple times (I explained in the post).
hexomancer··on Ask HN: Is there any decent API to download a paper given its name?
I already use scihub (I explained in the post). However, it is much much slower than google scholar.
hexomancer··on Ask HN: Is there any decent API to download a paper given its name?
I do use crossref for bibtex. It is not useful for getting a download link (as far as I know).
hexomancer··on Ask HN: Is there any decent API to download a paper given its name?
PyPaperBot uses scihub to download papers so there is not problem for that.

As for the google scholar, I don't care about non-open access articles. I am content with a download link only for the open-access ones.

hexomancer··on Animating Prompts with Stable Diffusion
How is this zoom effect achieved? Do they zoom in a little and then re-imagine the image?
hexomancer··on Computers and Intractability: A Guide to Algorithmic Lower Bounds
Really excited for this book. I would also recommend "The Nature of Computation" by Cristopher Moore and Stephan Mertens if you are interested in these topics.

It is really an underrated book and hands-down is the most enjoyable technical book that I have ever read.

hexomancer··on Sioyek 1.5 – Academic PDF Viewer – Now with extension support
Hi! Recently we released sioyek 1.5 with the major new addition of extensions which I am pretty excited about.

See this repository for a sample of what is possible: https://github.com/ahrm/sioyek-python-extensions . For example we have:

* paper_downloader: download papers from google scholar or libgen just by control+clicking on their name (video: https://user-images.githubusercontent.com/6392321/185757545-...)

* extract_highlights: Create a new document from just the highlights of the current documents. We create portals from the new document to the original one so we can quickly jump to the location of highlight in the original document.

* translate: Translate the text and display it in sioyek's statusbar.

I have also created some more experimental extensions which are not yet included in the repository. For example I created a script which indexes all the opened documents using haystack and allows you to do semantic search on your documents. However, currently it is too slow to be really useful.

Anyway, I am really interested in what extensions you think would be useful for a PDF viewer?

hexomancer··on Ask HN: Who is using C++ as the main language for new project?
I am using C++ for sioyek which is a PDF reader designed for reading research papers and textbooks: https://sioyek.info/

Other libraries used:

* MuPDF for PDF rendering

* Qt5 for UI

* sqlite for database

I also recently added a plugin system which is language neutral, but I wrote a python wrapper around it (see and example here: https://sioyek.info/#extensible).

hexomancer··on Dark Matter Doesn't Exist
I am not knowledgeable in physics, but I think dark matter is supposed to be unaffected by electromagnetic forces (hence why it can't be seen) which is definitely not true for antimatter.
hexomancer··on Show HN: SDWM – Simple Dynamic Window Manager for Windows
I mean there are a lot of people (me included) that have to use windows because of program exclusivity (e.g. visual studio, adobe suite, AutoCAD, etc.). Usually switching to linux is not an option in these scenarios.
hexomancer··on Ask HN: What are some cool but obscure data structures you know about?
Sorry, my bad. I searched for the word "disjoint" expecting it to be prominent in this section but somehow this word only appears 3 times in this book non of which are in this section!

Anyway, while the figures in this work were indeed gorgeous, it was not what I was looking for. It did not even contain a non-intuitive analysis of the inverse ackermann complexity, much less an intuitive one!

hexomancer··on Ask HN: What are some cool but obscure data structures you know about?
Is it in an old edition? I just downloaded an extremely legitimate version of Algorithms 4th edition but it has no section on union data structure.
hexomancer··on Ask HN: What are some cool but obscure data structures you know about?
I have always wanted to really understand this data structure. Sure, I can follow the analysis with the potential functions and all, but I never really understood how Tarjan came up with the functions in the first place. Does anybody have a resource which intuitively explains the analysis?
hexomancer··on Do Infinite Pencils Exist?
You seem very sure for such a wild claim. The observable universe is finite, as for the whole universe, we have no idea (unless you know something that I don't).
hexomancer··on Compare Webb's Images to Hubble
Just to be clear I did not create this website, I just saw it on reddit. All credits to the original author: https://www.reddit.com/r/woahdude/comments/vxeeqo/i_made_a_t...
hexomancer··on Sioyek 1.4 – Academic PDF Viewer
Video Demo: https://www.youtube.com/watch?v=yTmCI0Xp5vI

Features:

* Quickly preview or jump to figures/references/equations/etc. (even if the PDF doesn't have links)

* Search paper names in google scholar by middle clicking on their name (you can configure other search engines as well)

* Ruler mode for easier reading and less eye strain (for a demo of this feature, see https://user-images.githubusercontent.com/6392321/168427739-...)

* Extensible by external scripts (see https://ahrm.github.io/jekyll/update/2022/07/05/implementing... for some examples)

* Searchable table of contents, automatically generate table of contents if not available

* Searchable highlights/bookmarks

* Browser-like history navigation

* Mark locations for quick navigation (Vim style)

* Synctex support

hexomancer··on Meta VR prototypes aim to make VR 'indistinguishable from reality'
> I'm not buying a piece of hardware to strap to my face for just that one thing.

Obviously this was just one example to demonstrate the convenience of VR/AR over smart phones. You would not be using VR/AR for "just that one thing". The applications are numerous:

* Ability to have virtual workspaces with multiple high-resolution simulated monitors (and that's just the low-hanging fruit of simulating existing workspaces at a lower cost and more portability, it is entirely possible that VR will lead to completely new workspaces. But let's be a pessimist and assume simulating existing workspaces is the best we can do.). I mean if VR can deliver this one thing and nothing else, I would say it will be a huge success.

* Ability to read/work on commute without getting a headache from vibrations (since the image will be stable)

* Lifelike interaction with friends and family in a moment's notice and no air pollution

* Videogames

And these are some of the easier and less speculative uses of VR.

hexomancer··on Meta VR prototypes aim to make VR 'indistinguishable from reality'
You can connect usb GSM adapters to have the mobile network on a laptop (same for all the other sensors). It is just a lot more "convenient" to have a smartphone in your pocket rather than carry a giant laptop with you everywhere. Which is the point I was trying to make. Yes, technically all thinks VR does is possible with a smartphone but it is a lot more "convenient" to have google maps directions overlayed on top of real world rather than looking at it through a smartphone.
hexomancer··on Meta VR prototypes aim to make VR 'indistinguishable from reality'
My contention isn't that it won't happen only that it's irrelevant. Smartphones are just UI. They don't really make anything new possible. An absolutely perfect smartphone will be marginally more convenient for some modalities than a laptop and much less convenient for a lot of others.
hexomancer··on “Code” 2nd Edition
It's funny that you chose fork to make your point because in my opinion window's version is vastly superior.

First of all the name CreateProcess is obviously much more readable than fork. When I want to create a process, I usually want to run some function in the new thread which the windows version takes as arguments, alternatively fork copies the entire god damn process (what?) and I have to choose what to do based on the return value. The only reason the performance of fork is not abysmal is because the underlying operating system has to implement some sort of copy on write optimization but that just makes the performance characteristics of the program less transparent.

hexomancer··on Stars in distant galaxies are typically more massive
> Galaxies studied were very far from Milky Way and hence much older

You mean younger, right?

← PreviousPage 5 of 8Next →