Readit News logoReadit News
andijcr commented on Twitter Appears to Shadowban Videos of Italy’s First Female Incoming PM Meloni   dailywire.com/news/twitte... · Posted by u/that
andirk · 3 years ago
In the eyes of the neoliberal, you're only supposed to use identity politics to attack your enemy, not as a means of stating basic facts such as she's Italy's first female PM.
andijcr · 3 years ago
nit: she is the head of the party that received most votes. She will probably be prime minister, but for now no government was proposed to the president, even the new parliament will not start for another week
andijcr commented on Show HN: Rocketry – Statement-based scheduling framework for Python   github.com/Miksus/rocketr... · Posted by u/Miksus
laserlight · 3 years ago
Hmm, this definition reads a bit wrong:

  @app.task((weekly.on("Mon") | weekly.on("Sat")) & time_of_day.after("10:00"))
  def do_twice_a_week_after_ten():
Expression reads Monday or Saturday, yet its meaning is Monday and Sunday according to function name.

andijcr · 3 years ago
if you take it as a boolean test it makes sense. it will be true for any timepoint that is after ten and is either on monday or saturday
andijcr commented on Show HN: Vado – A platform to encourage people to cycle and walk more   vado.cc... · Posted by u/elbarbabrb
elbarbabrb · 4 years ago
also check spam folders, some mail servers flag our domain as spam
andijcr · 4 years ago
yes, the link was mangled by gmail's spam protection. after marking it as non-spam it worked
andijcr commented on Show HN: Vado – A platform to encourage people to cycle and walk more   vado.cc... · Posted by u/elbarbabrb
andijcr · 4 years ago
email confirmation seems a bit broken
andijcr commented on Discontinue Sourcetrail   sourcetrail.com/blog/disc... · Posted by u/pabs3
mikro2nd · 4 years ago
If it's a useful and helpful tool (and I assume it is from what you've said), what's the problem? It's not as though the existing tool is suddenly going to stop working.
andijcr · 4 years ago
Do you mean "what's the problem with using the last available package of sourcetrail?"? Nothing, I'm using it. eventually, in some timeframe, the compiled package will stop be installable in a new system, or the unrecognized language features will be too many, which is sad.
andijcr commented on Discontinue Sourcetrail   sourcetrail.com/blog/disc... · Posted by u/pabs3
andijcr · 4 years ago
Really sad to read this. sourcetrail helped me to understand a foreign codebase when I started my last job. The ability to navigate who-calls-who and who-implements-who back and forth is invaluable, and the search bar is fantastic. This morning I woke up and fantasized about forking the project to keep it alive, but I understand that the work behind it is too much to keep it as a side project.
andijcr commented on Gravity batteries try to beat chemical ones with winches, weights, mine shafts   sciencemag.org/news/2021/... · Posted by u/hheikinh
flal_ · 4 years ago
Yet, gravity is strong enough to initiate nuclear fusion at the core of stars, or create black holes... That 10^36 argument is non sensical to me.
andijcr · 4 years ago
it is strong enough at the scale of a star, on earth my foot electromagnetic repulsion against the floor is enough to counteract all of the planet pull
andijcr commented on The Swift Array Design (2014)   github.com/apple/swift/bl... · Posted by u/mpweiher
s3cur3 · 4 years ago
Swift's Array type is just so well designed. It's a delight to use.

Two things stood out to me here as being really nice for someone coming from C++:

- Implicit upcasting to convert `[Derived]` to `[Base]` in O(1).

- Checked conversions convert `[T]` to `[U]?` in O(N) via `a as [U]` in O(n).

These are both operations I've manually written the C++ code to do, because there's no ergonomic way to do it with `std::vector`.

andijcr · 4 years ago
for the first one, there is no direct equivalent, but you can directly loop over any [Derived] collection as a reference to [Base]
andijcr commented on Ask HN: Should I learn C/C++ or Rust as my first systems programming language?    · Posted by u/abnry
andijcr · 5 years ago
You seem pretty set in your choice already, just looking for confirmation. what's stopping you?
andijcr commented on Fix Boyer-Moore searcher with the Rytter correction   github.com/microsoft/STL/... · Posted by u/HenryR
karma_fountain · 5 years ago
Nice fix! It's been a while since I've done c++ so does the following code

  const auto elapsed = steady_clock::now() - start;
  if (elapsed > 10s) {
actually use a units quantifier on the 10, i.e. does 10s mean 10 seconds? Is that a library thing? Cool if so.

andijcr · 5 years ago
that's a user defined literal, a language feature: https://en.cppreference.com/w/cpp/language/user_literal

the std::chrono library reserved some suffixes (under std::literals::chrono_literals) for time units https://en.cppreference.com/w/cpp/symbol_index/chrono_litera...

u/andijcr

KarmaCake day19September 23, 2019View Original