date
cocalc
date | cocalc | |
---|---|---|
24 | 4 | |
3,044 | 1,116 | |
- | 1.0% | |
5.5 | 10.0 | |
17 days ago | 5 days ago | |
C++ | TypeScript | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
date
-
Ask HN: Did you encounter any Leap Year bugs today? How bad was it?
> but I'd be surprised if there was not a modern date library for C++
The standard library now includes . AFAIK: It was mostly written by Howard Hinnant. He now has more date/time libs that expand upon : https://github.com/HowardHinnant/date
-
Why no std::chrono::year_month_day::operatator+=(const std::chrono::days&)?
Ah: https://github.com/HowardHinnant/date/issues/178 https://stackoverflow.com/questions/62734974/how-do-i-add-a-number-of-days-to-a-date-in-c20-chrono
-
Converting text to std::chrono::timepoint
If you’re using an earlier standard you can use this, which the ‘official’ date/time zone stuff was based on: https://github.com/HowardHinnant/date
-
std::chrono Calculating an ordinal date and get the week number from an ordinal date
If you don't have C++20, or if your vendor hasn't shipped it yet, here is a free, open-source, header-only preview of this part of C++20 that you can use: https://github.com/HowardHinnant/date
-
Libstdc++ Gets C++20 Chrono
C++20 adds the timezone/caldendaring/formatting from Howard Hinnat’s Date Library https://github.com/howardhinnant/date .
So calendrical calculations and time zone support.
-
need help with constructing time with std::chrono
Unfortunately only implemented in MSVC right now, for other compilers and/or if you want to do anything with dates I suggest you use https://github.com/HowardHinnant/date directly, chrono is good enough for measuring time but if you do more complex things it can get a bit wild.
- Is there a port of the C++20 chrono library to C++17? MSVC and GCC
-
Is there any Date library like datetime from python
Here is the original calendar library that was adopted in C++20 (corrected link).
-
How to get epoch time to a specific date in C++? (Using std::chrono)
In lower C++ standards I would highly recommend including this as a header-only library: https://github.com/HowardHinnant/date. This was the basis for the new date/timezone functionality in C++20, so it's nearly identical and works down to C++11.
-
working with std::chrono
So you want date time functionality? Those come with c++20 otherwise you can use this. The author Howard Hinnant is the author of c++ chrono had have a few excellent video on YouTube explaining how to use chrono.
cocalc
-
Ask HN: Did you encounter any Leap Year bugs today? How bad was it?
I have some unit tests for billing and subscription code for my company that started breaking in CI today due to the leap day: https://github.com/sagemathinc/cocalc/commit/8575029c2b76787...
-
Ask HN: Who has deployed commercial features using GPT4?
1. I'm integrating ChatGPT extensively into https://CoCalc.com. This integration makes a lot of sense, because cocalc is a platform in which relatively inexperienced students use Jupyter notebooks, linux terminals and Latex. So far, the most popular feature by far is a "Help me fix this" button that appears above stacktraces in Jupyter notebooks.
2. One software engineering challenges is that ChatGPT often outputs code in markdown blocks. I've had to emphasize in prompts that it should explicitly mark the language. I then got inspired to make it possible to evaluate in place the code that appears in these blocks using a Jupyter kernel, and spent a week making that work (so, e.g., if you type a question into the chatgpt box on the landing page at https://cocalc.com, and code appears in the output, often you can just evaluate it right there). There seem to be endless surprises and challenges though. For example, a few minutes ago I realized that sometimes the giant tracebacks one gets when using Python in Jupyter notebooks are so big (even doing simple things with matplotlib) that they end up resulting in too much truncation: https://github.com/sagemathinc/cocalc/issues/6634
3. I'm mostly using GPT-3.5-turbo rather than GPT4, even though I have a GPT4 api key. Aside from costs, GPT4 takes about 4x as long, which often just feels too long for my use case. The average time for a complete response from GPT-3.5 for my application is about 8 seconds, versus over 30s for GPT4.
-
Math on GitHub: Following Up
Github's implementation is really lazy. There are many much better approaches to precisely this problem. E.g., Jupyter notebooks implement one that has matured in the wild over a decade. There's this very flexible markdown-it plugin that implements anther https://github.com/goessner/markdown-it-texmath, and my version of it here https://github.com/sagemathinc/cocalc/blob/master/src/packag... which I rewrote in typescript with a focus on the same semantics as Jupyter has, but for CoCalc, and I've been working on using unifiedjs to provide more general latex for Markdown (not just formulas) here https://github.com/sagemathinc/cocalc/pull/5982 Parsing math is much easier if you use a plugin to an existing markdown parser, rather than trying to do some hack outside of that (which is what Github probably does, and also what Jupyter does).
What are some alternatives?
pandas_market_calendars - Exchange calendars to use with pandas for trading applications
Scientific-Notes - Collaborative, open-source notes on mathematical physics with Obsidian.md
abseil-cpp - Abseil Common Libraries (C++)
kroki - Creates diagrams from textual descriptions!
rescript-date - 📆 Date manipulation in ReScript.
JSage - Something like Sage, but for the WebAssembly and JavaScript world.
zeitkatze - time cat -- literally. Available as AUR package
Franklin.jl - (yet another) static site generator. Simple, customisable, fast, maths with KaTeX, code evaluation, optional pre-rendering, in Julia.
nepali-datetime - Python's core datetime inspired Bikram Sambat (BS date) & Nepal Time (NPT) package🇳🇵
obsidian-mathlinks - An Obsidian.md plugin to render MathJax in your links.
DataFrame - C++ DataFrame for statistical, Financial, and ML analysis -- in modern C++ using native types and contiguous memory storage
symbolic - A Symbolic Package for Octave using SymPy