Questions tagged [punctuator]

6 questions
4
votes
1 answer

Which elements of operator-or-punctuator are punctuators?

I study C++ terminology. I have a trouble understanding the term "punctuator". Consider, for example, https://eel.is/c++draft/lex.pptoken (emphasis added): Each preprocessing token that is converted to a token shall have the lexical form of a…
pmor
  • 5,392
  • 4
  • 17
  • 36
4
votes
1 answer

What are Punctuators in C++?

I don't seem to get my head around punctuators in C++. My college didn't even mention about it while teaching tokens, they referred to it as 'special symbols' and just skimmed through it. Are the two terms used interchangeably? How can I write about…
Ardent Coder
  • 3,777
  • 9
  • 27
  • 53
2
votes
1 answer

Kafka Streams / How to get the partition an iterartor is iterating over?

in my Kafka Streams application, I have a task that sets up a scheduled (by the wall time) punctuator. The punctuator iterates over the entries of a store and does something with them. Like this: var store = context().getStateStore("MyStore"); var…
fml2
  • 190
  • 11
1
vote
1 answer

Can I rely on a in-memory Java collection in Kafka stream for buffering events by fine tuning punctuate and commit interval?

A custom processor which buffers events in a simple java.util.List in process() - this buffer is not a state store. Every 30 seconds WALL_CLOCK_TIME, punctuate() sorts this list and flushes to the sink. Assume only single partition source and sink.…
0
votes
1 answer

In C++ in a function definition parentheses are operators or separators/punctuators?

in this code void something () { /*something*/ } are () separators or operators? as i know in a function call () are operators: something(); but in a function definition it would be a bit weird to have an operator, because operator in fact is a…
christo
  • 381
  • 2
  • 5
-2
votes
0 answers

A faster punctuator for sentence boundaries?

Given text without any punctuation or capitalization, I am looking for a way to split it into sentences. I need to be able to handle ten thousand words per second. I have tried the…
AlwaysLearning
  • 7,257
  • 4
  • 33
  • 68