Skip to content

Conversation

@denisichh
Copy link
Contributor

added: persistent_query, trace_context, execution_context

@denisichh denisichh marked this pull request as draft January 20, 2026 15:30
@denisichh denisichh self-assigned this Jan 20, 2026
@denisichh denisichh added runtime Feature related to runtime k2 k2 related labels Jan 20, 2026
@denisichh denisichh marked this pull request as ready for review January 20, 2026 15:42
@denisichh denisichh marked this pull request as draft January 20, 2026 16:14
@denisichh denisichh marked this pull request as ready for review January 21, 2026 16:04
@astrophysik astrophysik self-requested a review January 21, 2026 16:05
constexpr std::string_view lo_sv = "lo";
constexpr std::string_view hi_sv = "hi";

const auto underline = string{"_", 1};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: include please string header

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


array out{std::pair{underline, mixed{}},
std::pair{string{persistent_query_uuid_sv.data(), static_cast<string::size_type>(persistent_query_uuid_sv.size())}, mixed{}},
std::pair{string{persistent_slot_uuid_sv.data(), static_cast<string::size_type>(persistent_slot_uuid_sv.size())}, mixed{}}};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as for runtime-light

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,194 @@
// Compiler for PHP (aka KPHP)
// Copyright (c) 2025 LLC «V Kontakte»
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace 2025 into 2026

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

int64_t hi{};

bool fetch() {
lo = tl_fetch_long();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Will be better to check error after each fetching attempt. You may lose original error code which is produced by lo = tl_fetch_long();.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

bool return_view_number{};

bool fetch(tl::fetcher& tlf) noexcept;
tl::mask get_flags() const noexcept;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: newline between declarations

Copy link
Contributor

@apolyakov apolyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except single nit comment

}
}

uint64_t get_flags() const noexcept {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be of type uint32_t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

k2 k2 related runtime Feature related to runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants