On

One flew over the variadic template arguments

Hacker News

One flew over the variadic template arguments

Python is a dynamically -- run-time -- typed language. That creates big advantages and big disadvantages. The advantage: it makes it very versatile and heterogeneously functional. For example, you could easily have heterogeneous containers. You could easily loop through them and your loop variable is dynamically evaluated. Also, you could have heterogeneous interfaces, … The disadvantage: it is very inefficient. For example, in the above loop, the loop variable type must be determined at each iteration. That’s extremely inefficient -- although there are ways under certain circumstances to avoid that. C++, on the other hand, is statically and moderately-strongly typed language. So, you cannot – without using pointers which is inefficient – have heterogeneous containers because you must know all types at compile time. Also, you cannot have heterogeneous interfaces, … Enter the _ variadic template arguments_. This modern C++ feature makes it possible to have some aspects of heterogeneity without the disadvantage of inefficiency. Variadic template arguments help in designing interfaces for heterogeneous containers. As an example, please look at [DataFrame](https://github.com/hosseinmoein/DataFrame) which implements a C++ heterogeneous container. Look at member methods load_data()(https://htmlpreview.github.io/?https://github.com/hosseinmoein/DataFrame/blob/master/docs/HTML/load_data.html), groupby()(https://htmlpreview.github.io/?https://github.com/hosseinmoein/DataFrame/blob/master/docs/HTML/groupby.html), bucketize()(https://htmlpreview.github.io/?https://github.com/hosseinmoein/DataFrame/blob/master/docs/HTML/bucketize.html). I look forward to hearing what you think

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: lua, io · Missing: https docs, excited, just released
57%57% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
51%51% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface, efficient · Missing: plus, platform, intuitive
41%41% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Product HuntUnlikely to reach the leaderboard · Strong signals: using · Missing: mac, agents, macos
41%41% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
36%36% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Em
Emmetp a template languaged of emmet38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Emmetp a template languaged of emmet

Hacker News5
Ne
Netcore-webapi-angularjs template40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Netcore-webapi-angularjs template

Hacker News1
Te
Template overlays (Emacs)52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Template overlays (Emacs)

Hacker News1
Pu
Puppeteer Template for OpenFaaS54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Puppeteer Template for OpenFaaS

Hacker News2
go
go-template – A Cookiecutter template for Go38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

go-template – A Cookiecutter template for Go

Hacker News3
A
A Generic Monorepo Template29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Generic Monorepo Template

Hacker News1
An
Anatomy of an OpDemand Template38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Anatomy of an OpDemand Template

Hacker News2
DA
DACOM - A webapp template for Datomic, Compojure, and Om40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DACOM - A webapp template for Datomic, Compojure, and Om

Hacker News1
Co
Comply – Free Bootstrap 4 Multipurpose Template46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Comply – Free Bootstrap 4 Multipurpose Template

Hacker News9
an
an html5 + bootstrap template app for appengine50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

an html5 + bootstrap template app for appengine

Hacker News1